For some time I have been getting a “Maximum execution time of 30 seconds exceeded” while trying to update different WP installations on my local server.
I know I can fix this by disabling it in the php.ini.. but what I want to do is find the problem and fix it generally. It’s a local server after all, so this action should take just few seconds of time.
My local server is running on XAMPP.
The exact message from the WP admin:
Downloading update from http://wordpress.org/wordpress-3.5-new-bundled.zip…
Fatal error: Maximum execution time of 30 seconds exceeded in E:\Local Server\htdocs\test wp\wp-includes\class-http.php on line 949
to temporarily increase your max execution time you can use
ini_set()in your php pageini_set('max_execution_time', 300); //300 seconds = 5 minutesotherwise you’ll need to do it in php.ini
max_execution_time = 30Change the value (in seconds) or set to 0 for infinite time and restart Apache for the setting to take effect.