• Resolved richard

    (@rich_smc)


    Hi,

    I have a quite an old intranet site, i figured i might as well update it; new theme, etc.

    So for that, i tried to install WP Staging – it seemed to work all the way to 100%, when suddenly i got this error:

    [ERROR]-[2019/02/19 08:20:46] Preparing Data Step6: Failed to reset index.php for sub directory; wp-blog-header.php is missing

    Both the files are there. Rather odd error there, any ideas would be most welcome? Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    Hi,

    this is a wrong error. Will be fixed with the next version.

    Please open index.php and find a line similar to

    require(.*)wp-blog-header.php

    Please let me know that exact line here or sent me the index.php to support [at] wp-staging.com.

    Is the staging site still working or did the cloning process stopped completely after that error?

    Cheers
    René

    Thread Starter richard

    (@rich_smc)

    Hi Rene, thanks.

    Yes you are right; the code is:

    define(‘WP_USE_THEMES’, true);
    if (strcmp(“/wordpress/index.php”,$_SERVER[‘REQUEST_URI’]) && strcmp(“/wordpress/”,$_SERVER[‘REQUEST_URI’])){
    require(‘/var/services/web/wordpress/wp-blog-header.php’);
    } else {
    header(‘location: wp-login.php’);
    }
    ?>

    It should still work; the folders/files seem to work. As said, WP Stage works right to the end…..

    Plugin Author Rene Hermenau

    (@renehermi)

    @rich_smc
    Please change the line:

    require('/var/services/web/wordpress/wp-blog-header.php');

    to

    require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );

    The create a new staging site. This should fix it.

    Plugin Author Rene Hermenau

    (@renehermi)

    If it still does not please send me a mail to support [at] wp-staging.com

    I can figure this out for you.

    Thread Starter richard

    (@rich_smc)

    Hi Rene,

    Thank you, very much appreciate the help.

    I will try this – is there someway to test this perhaps? Instead of trying the entire clone?

    I never set up the intranet; things may have changed, so this could be why (although the wordpress is ok). The link i from my PC is \\SMTNAS01\web\wordpress

    Thread Starter richard

    (@rich_smc)

    Hi Rene, that worked fine; thanks for the help.

    Plugin Author Rene Hermenau

    (@renehermi)

    @rich_smc thanks for your feedback. I’m glad that it works now. Have a great week

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can WP Staging work on the Intranet?’ is closed to new replies.