Solve Operation Timed Out Error When Upgrading WordPress

WordPress 2.7 comes with a built-in automatic upgrade utilities, inside the control panel. Recently, WordPress has just released version 2.7.1. I would like to upgrade it automatically, to save me the hassle of downloading, ftp-ing or installing it manually.
However, many times have I experienced “Operation Timed Out” followed by “Installation Failed” when doing so. Below are the error I’m talking about (or something similar):

Downloading update from

Download failed.: Operation timed out after 30000 milliseconds with 351500 bytes received

Installation Failed

Below is what I did to resolve the error:

1. Go to your WordPress installation directory on your website.
2. Go to /wp-admin/includes/ folder.
3. Open/edit the file.php . Or you can download the file to your local computer for editing.
4. Look for the line;
$response = wp_remote_get($url, array(’timeout’ => 30));
and replace it with;
$response = wp_remote_get($url, array(’timeout’ => 120));

5. Save the file, or upload back the file. Be sure to backup the original file.
6. Try the “Automatic Upgrade” once again.

Your upgrade should be working fine now, without the “Operation Timed Out” error. You didn’t hear this from me, it’s from a reference Download failed.: Operation timed out after 30 seconds.

– WordPress: Code is Poetry

Related Posts:



great stuff nazham..just what i’m looking for..sadly it was not working for me…error in the scipt or something..oh well..just have to use the manual way..

Read 2 Know

Hi Nazham.. am trying to upgrade my WordPress and come with the following error.
“Warning: copy(/home/readknow/public_html/wp-register.php) [function.copy]: failed to open stream: Permission denied in /home/readknow/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 122

Could not copy file: /home/readknow/public_html/wp-register.php”

Are you aware what should be done in this case? Is it because of the file permissions?


@read2know: That’s probably due to file permissions. Try set your folders to 755 temporarily, then try again.


thank you, you save me 🙂

wondering why this download wp 2.7.1 failed only occurred on my local hosting, I mean not U.S hosting

Leave a Reply

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