• Resolved JD

    (@jutta0303)


    Hi,

    My site recently got upgraded to PHP 7.1.12 immediately after which I started seeing the following three PHP notices/warnings in my PHP error log:

    [07-Dec-2017 22:45:39 UTC] PHP Notice:  Undefined variable: _SERVER in /public_html/wp-includes/load.php on line 63
    [07-Dec-2017 22:45:39 UTC] PHP Warning:  array_merge(): Argument #2 is not an array in /public_html/wp-includes/load.php on line 63
    [07-Dec-2017 22:45:39 UTC] PHP Notice:  Undefined index: REQUEST_URI in /public_html/wp-includes/load.php on line 153

    Since they’re related to a WordPress core file, I felt to check in here and see if anyone has any idea what could be causing this?

    I did switch the site to a 7.0.x version of PHP and the errors continued; I also reinstalled WordPress but the errors are continuing to show up.

    Thanks!
    Jutta

    • This topic was modified 7 years, 3 months ago by JD.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    load.php could be just about anything, everything is passed through that file. Let’s rule-out the third-party ones first.

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Seventeen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter JD

    (@jutta0303)

    Thank you!

    I just tried those steps (deactivating plugins and switching to Twenty Seventeen), but the warnings/notices continued to get generated.

    Any other ideas?

    Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter JD

    (@jutta0303)

    Oh, sorry. I should have mentioned that I did reinstall WordPress; not via FTP but I did it via the Dashboard > Updates > Re-install Now button. Is there a benefit to reinstalling via FTP?

    Moderator James Huff

    (@macmanx)

    No, that should be enough.

    You’re definitely still seeing the errors even with all plugins deactivated and the Twenty Seventeen theme in use?

    If so, do the errors stop if you switch back to PHP 7.0?

    Thread Starter JD

    (@jutta0303)

    Yes, definitely still seeing the errors, even with PHP 7.0.x.

    I just restored the site to a point before the errors started occurring and it seems that everything is running normally now. I updated all plugins/themes that so basically the site is exactly as it was… but now no more errors!

    Weird. Not sure what to make of that but I appreciate your help!!!

    Thanks, James! Feel free to share any thoughts you might have about this having fixed the issues.

    Moderator James Huff

    (@macmanx)

    I suppose it’s possible that an updated plugin or theme was corrupted, missing a file or a damaged file.

    I’m glad it’s working now! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘/wp-includes/load.php-related PHP notices and warnings’ is closed to new replies.