Restore fails with twitter bootstrap

UpdraftPlus Home Forums Paid support forum – UpdraftPlus backup plugin Restore fails with twitter bootstrap

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17958
    Richard
    Participant

    Just purchased the migrator addon. The backup on my local server all went fine, likewise the restore and migration also appeared to work ok. No problems reported in the log that I could see. However the site admin is now unavailable and the there is a failure notice as follows

    Code:
    lessphp fatal error: load error: failed to find C:\wamp\www\wp19/wp-content/themes/theme2019/bootstrap/less/bootstrap.lesslessphp fatal error: load error: failed to find C:\wamp\www\wp19/wp-content/themes/theme2019/style.less

    Cant reach admin, or login. site address is here https://themtfoundation.com/index.php

    I have blocked the index.php site so you should call the index.php

    NOTE no plugins or caching installed except updraft/ akismet. Brand new install on local box before migration.

    Thank-you

    #18292
    Richard
    Participant

    I have now deleted this entire install as it’s pretty useless to interrogate. I still want some feedback please on what this failure is due to.

    Thank-you

    #18293
    udadmin
    Keymaster

    Hi Richard,

    That message indicates that your theme had hard-coded details about the previous server – in particular, the file paths.

    That’s really a theme bug (no WordPress component is meant to hard-code that kind of hosting-specific detail). But, it may be possible to work around. It looks to me like you have the theme set up in some kind-of ‘developer’ mode, where it’s set to compile the LESS code on each page run. Presumably you don’t want that in production. Is there a setting for that in the theme’s options that you could turn off?

    David

    #18294
    Richard
    Participant

    Hi David, thanks for the response. Its a template monster wordpress theme. No development/production setting anywhere that I can find. Has an admin panel, but it’s the usual types of options for a premium theme. The theme has a framework running beneath and a child theme working on top. Yep, that’s the way template monster does it. Seems to work well as the framework runs the options for several child themes. My local install went ok and there were no hard coded settings to file paths that I made.

    One thing I did notice is that there is a directory in the theme structure with several ‘.less’ files in it what is a ‘dot less’ file??
    There is also a ‘style.less.cache’ file that gets auto generated, but no settings to manually inhibit or purge. I have not used TM themes before, so I can’t really compare them yet. Usually I run themeforest premium themes on my sites.

    Can’t throw any more light on it that that. I’ve now installed the theme manually and it’s all configured. However, I have another site with conventional theme structure so I’ll see how this goes.

    If you have any gems to offer from my comments that would be great. Otherwise, I’ll see how the next site migrates.

    Thanks, Richard

    #18295
    udadmin
    Keymaster

    Presumably C:\wamp\www\wp19/wp-content/themes/theme2019/style.less is a path from your development server, not from your production server? That was the ‘hard-coded’ path I was referring to. Probably it’s somewhere in the database.

    “Less” is a meta-language for creating CSS faster from. It has to be compiled to CSS. It looks like your site is trying to compile it, but now finding things in the path it was expecting (because of the move, and because something is coded to not expect paths ever to change). Asking the theme author about this may be your best bet – if you tell him that you moved the site, but got the above error, then he should know where it’s coming from. I’d think he’d consider it a bug – as a theme shouldn’t be assuming that the hosting environment never changes.

    David

    #18296
    Richard
    Participant

    Ok, thanks David. Correct, the WAMP location is on my local server. That’s helpful info. about the less file and hard coded path. IT’s a quirk of the theme, so let’s close the thread.

    Thank-you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Restore fails with twitter bootstrap’ is closed to new replies.