• Hi,

    I recently updated to WordPress 3.5.2 and since then seem to be having file path issues.

    My WP core files have always been in their own folder/directory, ie https://www.freelancealot. co .uk/round_table but the site address is https://www.freelancealot. co .uk/Herald

    This never caused a problem until the update to 3.5.2.

    Now I’m getting intermittent warnings and fatal errors. Not consistently, so it will throw up errors and then a few seconds work fine.

    The warnings also seem to be happening on require_once and include_once.

    All the plugins are up to date, and I have installed a new theme just in case it was the old one that wasn’t compatible with 3.5.2.

    Here’s an example of one for a plugin ( have since removed this plugin):

    Warning: require_once(src/Plugin.php) [function.require-once]: failed to
    open stream: No such file or directory in
    /home/…/public_html/round_table/wp-content/plugins/ultimate-tag-clou
    d-widget/ultimate-tag-cloud-widget.php on line 88

    Fatal error: require_once() [function.require]: Failed opening required
    ‘src/Plugin.php’ (include_path=”) in
    /home/…/public_html/round_table/wp-content/plugins/ultimate-tag-clou
    d-widget/ultimate-tag-cloud-widget.php on line 88

    ==============
    Here’s one with include_once

    Warning: include_once(inc/navbar-walker.php) [function.include-once
    <https://www.freelancealot.co.uk/Herald/function.include-once>%5D: failed to
    open stream: No such file or directory in
    /home/…/public_html/round_table/wp-content/themes/spine/menu-seconda
    ry.php on line 2

    Warning: include_once() [function.include
    <https://www.freelancealot.co.uk/Herald/function.include>%5D: Failed opening
    ‘inc/navbar-walker.php’ for inclusion (include_path=”) in
    /home/…/public_html/round_table/wp-content/themes/spine/menu-seconda
    ry.php on line 2

    Fatal error: Class ‘NavBarWalker’ not found in
    /home/…/public_html/round_table/wp-content/themes/spine/menu-seconda
    ry.php on line 14
    =============

    The .htaccess file within the /Herald folder has the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /Herald/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /Herald/index.php [L]
    </IfModule>

    # END WordPress

    The .htaccess file within the /round_table folder has:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /Herald/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /Herald/index.php [L]
    </IfModule>

    The index.php in the /Herald folder has:

    <br />
    /** Loads the WordPress Environment and Template */<br />
    require('./../round_table/wp-blog-header.php');<br />

    The index.php in the /round_table folder just has this:

    <br />
    <?php<br />
    /* Short and sweet */<br />
    define('WP_USE_THEMES', true);<br />
    require('./wp-blog-header.php');<br />
    ?><br />

    in the wp-config file I have the following:

    <br />
    /* That's all, stop editing! Happy blogging. */</p>
    <p>/** Absolute path to the WordPress directory. */<br />
    if ( !defined('ABSPATH') )<br />
    	define('ABSPATH', dirname(__FILE__) . '/');</p>
    <p>/** Sets up WordPress vars and included files. */<br />
    require_once(ABSPATH . 'wp-settings.php');<br />

    The site seems to run okay at https://www.freelancealot. co. uk/Herald then I’ll suddenly get one of these errors, the errors also happen while I’m working in the admin section.

    From the error log in the round_table folder I have lots of these warnings and fatal errors:

    [11-Sep-2013 03:51:33 Europe/London] PHP Warning: require(/home/…/public_html/round_table/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/…/public_html/round_table/wp-settings.php on line 21

    [11-Sep-2013 03:51:33 Europe/London] PHP Fatal error: require() [function.require]: Failed opening required ‘/home/…/public_html/round_table/wp-includes/load.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php:/root/php’) in /home/…/public_html/round_table/wp-settings.php on line 21

    I’m sure it’s something to do with file paths but don’t know where the error is.

    Really hoping someone can spot it and and let me know.

    Thanks in advance.

    Cheers,

    Tracy

Viewing 1 replies (of 1 total)
  • I recently updated to WordPress 3.5.2

    Why? The current version of WordPress is 3.6.1. Were you aware that your site is currently running a very real risk of being hacked? You need to upgrade WordPress asap.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warnings & Fatal Errors – File path issues on update to 3.5.2’ is closed to new replies.