Page 1 of 1

Can't update Wordpress via Admin Panel

PostPosted: 07. December 2016 01:24
by ecoduma
Hi there,

Again need to ask for help regarding updating Wordpress (4.7.) via WP admin panel. After clicking "Update" button the next message appears:

Update WordPress

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

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\...\...\wp-includes\class-wp-http-curl.php on line 332


I checked that file but because I do understand nothing in PHP-scripting I am really unable to make my mind how and when I should look at and what to do exactly in order to make it work properly.

Any suggestions, please.

Thanks,

Re: Can't update Wordpress via Admin Panel

PostPosted: 07. December 2016 11:51
by Nobbie
Edit php.ini (i.e. c:/xampp/php/php.ini), look for "max_execution_time" and replace the value 30 (what means 30 seconds) by a much higher value (for example 3600 - that is an hour). Save php.ini, then restart Apache und try again.

Re: Can't update Wordpress via Admin Panel

PostPosted: 07. December 2016 18:16
by dogmatic
Found that you have to do this manually
Here is a link from wordpress forum
https://wordpress.org/support/topic/wordpress-wont-automatically-update/

Download zip file, extract it, delete wp-config-sample.php and the wp-content from the extracted files of the zip files, not from your project folder(s)

Re: Can't update Wordpress via Admin Panel

PostPosted: 08. December 2016 11:32
by ecoduma
Nobbie wrote:Edit php.ini (i.e. c:/xampp/php/php.ini), look for "max_execution_time" and replace the value 30 (what means 30 seconds) by a much higher value (for example 3600 - that is an hour). Save php.ini, then restart Apache und try again.


You're a marvel! I set the value up to "120" and that appeared to be enough to let the server to execute updating Wordpress completely.

Thank you a lot!

P.S. By the way, it seems to me that the local server (XAMPP) functions even slower than sites (Apache & Wordpress also) on the real hosting (virtual). Is it possible?

Re: Can't update Wordpress via Admin Panel

PostPosted: 08. December 2016 11:44
by Nobbie
Yes.

Re: Can't update Wordpress via Admin Panel

PostPosted: 08. December 2016 11:50
by ecoduma
dogmatic wrote:Found that you have to do this manually
Here is a link from wordpress forum
https://wordpress.org/support/topic/wordpress-wont-automatically-update/

Download zip file, extract it, delete wp-config-sample.php and the wp-content from the extracted files of the zip files, not from your project folder(s)


Thank you for your reply. I had already been ready to do updating manually but a hint from Nobbie came at the right moment. You know, it works. Just increase max time of execution up to the value with which all processes go smoothly and continue your work light-heartedly.

By the way with Wordpress a similar problem with which users encounter quite often is about a max size of uploaded files.

Thank you again!