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
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:
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!
Related articles by Zemanta
- 13 WordPress Plug-in & Hacks for powering your Blogging Experience (franklinbishop.net)
- WordPress Exploit Scanner Helps Administrators Scan Their Database For Malicious Files (makeuseof.com)