Can't update Wordpress via Admin Panel

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't update Wordpress via Admin Panel

Postby ecoduma » 07. December 2016 01:24

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,
ecoduma
 
Posts: 8
Joined: 29. June 2016 09:59
XAMPP version: 3.2.2
Operating System: Windows 8 SL

Re: Can't update Wordpress via Admin Panel

Postby Nobbie » 07. December 2016 11:51

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Can't update Wordpress via Admin Panel

Postby dogmatic » 07. December 2016 18:16

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)
dogmatic
 
Posts: 1
Joined: 07. December 2016 18:01
XAMPP version: 4.5.1
Operating System: Windows

Re: Can't update Wordpress via Admin Panel

Postby ecoduma » 08. December 2016 11:32

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?
ecoduma
 
Posts: 8
Joined: 29. June 2016 09:59
XAMPP version: 3.2.2
Operating System: Windows 8 SL

Re: Can't update Wordpress via Admin Panel

Postby Nobbie » 08. December 2016 11:44

Yes.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Can't update Wordpress via Admin Panel

Postby ecoduma » 08. December 2016 11:50

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!
ecoduma
 
Posts: 8
Joined: 29. June 2016 09:59
XAMPP version: 3.2.2
Operating System: Windows 8 SL


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 148 guests