Support » Localhost Installs » 5.0.1 update on localhost throws “fatal error”

  • Resolved StephenEquus

    (@stephenequus)


    I’ve tried updating WordPress to 5.0.1 on both a standard WordPress localhost install and a multisite localhost install and have gotten the same error when trying to update WordPress from 4.9.8 to 5.0.1

    Update WordPress

    Downloading update from https://downloads.wordpress.org/release/wordpress-5.0.1-new-bundled.zip…

    Unpacking the update…

    Fatal error: Maximum execution time of 30 seconds exceeded in C:\#####\#####\#####\wp-admin\includes\class-wp-filesystem-direct.php on line 76

    it’s been about 5 minutes since I first say this and nothing is happened with the update – same message – no additional. I will probably wait 10 minutes and then I will leave the installer.

    • This topic was modified 10 months, 1 week ago by  StephenEquus.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • This happens to me as well. As a matter of fact it also happens on the previous version (5.0) therefore I’ve never really updated to the new version 5 since its launch.

    Hey, You need to update your PHP settings from cPanel or try using php.ini. You need to increase your execution time otherwise simply you can update WordPress manually by unzipping this file
    https://wordpress.org/latest.zip
    Refer to this WordPress document if needed 🙂
    https://codex.wordpress.org/Upgrading_WordPress#Manual_Update

    I incresed the execution time in php.ini to 300. I downloaded and manually added the files per https://codex.wordpress.org/Updating_WordPress#Manual_Update instructions.

    Now, when I try to go to a page in localhost WP admin I get:

    Fatal error: Class ‘WP_REST_Autosaves_Controller’ not found in C:\####\####\####\wp-includes\rest-api.php on line 198

    and when I try to go to the localhost site I get:

    Fatal error: Class ‘WP_Block_Type_Registry’ not found in C:\####\####\####\wp-includes\script-loader.php on line 2421

    Thankfully I did a backup but I still want to know why this happened.

    • This reply was modified 9 months, 3 weeks ago by  StephenEquus.

    Ok. Figured out the error. Needed to add the wp-login.php and wp-settings.php file on the top level (I compared them to my local copy and I see all the links to new php files).

    Ok. Consider this fixed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘5.0.1 update on localhost throws “fatal error”’ is closed to new replies.