Problems with WordPress Automatic Upgrade solved

Image representing WordPress as depicted in Cr...
Image via CrunchBase

While trying to upgrade my WordPress installation from version 2.9 to version 2.9.1 I always got the following error:

Downloading update from http://wordpress.org/wordpress-2.9.1.zip.
Download failed.: Operation timed out with 1201840 out of -1 bytes received
Installation Failed

After doing some research using Google I found a solution to that problem:

You just need to edit the following file in order to increase the download timeout:

/wp-admin/includes/file.php

Near line 461 of file.php change the timeout value from:

$response = wp_remote_get($url, array('timeout' => 60));

to the new value of 120:

$response = wp_remote_get($url, array('timeout' => 120));

Then try again to upgrade your wordpress installation using the automatic upgrade and it should work properly now. Mine did and I am happy again! 🙂

Cheers and have fun, and leave me a comment if this post was useful for you!

Herbert

Reblog this post [with Zemanta]

Leave a Reply

Your email address will not be published. Required fields are marked *