Support » Fixing WordPress » Wp_recovery_mode() – PHP Fatal Error

  • Hi,

    I contacted my host provider today as I was unable to access my wp-admin dashboard (getting an HTTP 500 error) today after moving the website to a new webspace and updating to WordPress 5.2.
    This was their reply:

    This is a headscratcher and it looks to be an issue with WordPress overall.

    The error that I am seeing here is:
    [Thu May 9 10:13:31 2019] [error] PHP Fatal error: Uncaught Error: Call to undefined function wp_recovery_mode() in /var/www/vhosts/206/1080606/webspace/httpdocs/corkphysiotherapy.ie/wp-includes/load.php:805

    This “wp_recovery_mode()” is brand new and the method that they have supplied for disabling this doesn’t change anything. I would advise raising this with WordPress directly.

    Can you please give me any help?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • hi jonroz,

    i’ve updated the wp-settings.php to the latest version from WordPress.org and now get this ERROR:

    Warning: require(/home/radioksa/public_html/wp-includes/class-wp-fatal-error-handler.php): failed to open stream: No such file or directory in /home/radioksa/public_html/wp-settings.php on line 21

    Fatal error: require(): Failed opening required ‘/home/radioksa/public_html/wp-includes/class-wp-fatal-error-handler.php’ (include_path=’.:/opt/alt/php71/usr/share/pear’) in /home/radioksa/public_html/wp-settings.php on line 21

    it seems I’m getting further down the rabbit hole.

    thoughts?

    Are you sure you have a consistent set of WP files?
    class-wp-fatal-error-handler.php should be in your wp-includes folder. The created date on that file os 15th of May 2019, so it looks pretty recent.

    If perhaps you had done an upgrade with a slightly older version of WP and then copied the wp-settings.php file, it may be referencing a file that doesn’t exist in the version you previously installed.

    Updating your wp-includes and wp-admin would fix this.

    Top troubleshooting hint – I downloaded a fresh set of WP files and opened them in sublime text, I can then do a “find in files” and hunt down these missing functions

    @jonroz You are my hero! I had missed updating those root files, THANK YOU!

    I had the same issue. My solution is copy file from wordpress latest update and paste(replace) to your wordpress. The solution fixed for me. Thanks

    I need help with this as well:

    I went to update WP but it said my PHP was outdated. I went to check on my cpanel and it said it was up to date… I contacted my hosting company and they said it updated anyway. Now I am getting these errors and can’t access anything from WP or my cpanel

    Fatal error: Cannot redeclare class WP_User_Request in /home/content/21/11552021/html/wp-includes/user.php on line 3657

    Fatal error: Class ‘WP_Recovery_Mode’ not found in /home/content/21/11552021/html/wp-includes/error-protection.php on line 133

    @radisaad
    What version did you downgrade to?
    Thank you!

Viewing 6 replies - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.