WordPress automatic upgrade timeout

Are you plagued by horrible internet connectivity, and do you keep getting errors like this one, when you try to upgrade your WordPress blog?

Wordpress upgrade timeout

I kept getting the same error over and over again, and decided there’s a better way of overcoming this problem. Thanks to Nazham, he had some pointers on his blog to share on how you can edit the file (/wp-admin/includes/file.php) and modify this line:

$response = wp_remote_get($url, array(’timeout’ => 30));

to increase the timeout to something longer like 120.

Wordpress upgrade time out

However, this method apparently is overwritten when you upgrade your WordPress installation in the future. Felix Ker has a plugin that permanently fixes this problem, perhaps you could try it out instead.


  1. blacks - May 27, 2009

    Thanks Alex for dropping by at my blog…pergh…im really supprise getting a visitor and comment from great photographer like u…really boosting up my metabolism…ha..ha..ha..thanks bro for the comment and i hope u will come again and critic more on my works…if im not mistaken you were in KL with Amru right during Louis Pang visit to KL on WPPI 2010 seminar right?hope i were there…(currently its still on my dream list…hik..hik..)

  2. Chong - June 7, 2009

    Thanks for this guide! At last, I can use WordPress Auto Upgrade.

  3. Flow Interactive - June 23, 2009

    Mate you are a legend thanks for the tip worked perfectly!

  4. The Backpackr - June 24, 2009

    I’m glad I could be of some assistance! Their default timeout assumes everyone has a blazing fast connection, and lives in the US!

  5. Joe Pea - June 24, 2009

    Would be cool if this was included as an option in WordPress’s Admin settings along with a few other settings instead of manually locating the file!

Leave a reply