Support » Localhost Installs » Update wordpress: Fatal error maximum execution time 120 seconds

  • When I try to update to the new WordPress version it gives me this error. Does anyone know what it is and how to resolve it? Currently at WordPress 5.7, trying to update to 5.7.1. The site is still under development so it is running on xampp (localhost).
    Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\decoloop\wp-includes\Requests\Transport\cURL.php on line 463

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @sievaldecoloop

    Max execution time is related to the PHP configuration.

    As an example if run a specific code and for “X” or “Y” reason it requires more than 120 seconds to load it will display the error you are facing right now.

    Since you mentioned you are using xampp, I’ve found an external article How to increase the execution time

    I hope it helps, but keep in mind you may increase it to a high number but it does not mean it’s going to fix the issue, some scripts may need higher values, but as an example:

    If you create a phpinfo.php it should load in 2-3seconds, right? but if for some reason there’s a code issue that causes a strange ‘loop’ it will load and load so if you increase to 1000, it will only going to take more time until you see the error.

    Dion

    (@diondesigns)

    Based on the error message, WordPress was not able to access wordpress.org and eventually caused an execution time error. What happens if you click the Add New button on the Plugins or Themes pages? Does Site Health report any errors?

    RossMitchell

    (@rossmitchell)

    Most likely the update is failing because the localhost setup files (and directories) do not have the correct file permissions for the auto update to work.
    Rather than fix these fiddly problems, the easiest solution is to download and install the WordPress update manually.

    Thread Starter sievaldecoloop

    (@sievaldecoloop)

    Thanks for the responses.

    @diondesigns I can just download new plugins to the worpress without any problems.
    @rossmitchell I tried to do a manual update (throught the WordPress interface), should that be any different then the auto update?
    I am working with git so I’d rather not have to change the directory of the repository or something similar. Do you perhaps know how to give the folder the appropriate permissions?

    Dion

    (@diondesigns)

    Does Site Health report any errors?

    Also, WP version control via git and the WP internal update system are mutually exclusive…pick one and disable the other.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.