Web Hosting - Dedicated Servers
Dedicated Server Hosting
Web Hosting eCommerce Hosting Reseller Hosting Reseller Hosting Dedicated Server
Register Your Domain Name Todaywww

Using WordPress Auto-Upgrade and Solving Timeouts

User Rating: / 3
PoorBest 

For recent versions of WordPress, upgrading has been as simple as logging into your Dashboard, seeing the notification of a new version available and clicking the automatic upgrade link.

The process doesn't always run smoothly and the most common error during the auto-upgrade is due to a timeout. Before you go running back to using the old way of backing up your files and database and performing a manual upgrade, this tutorial will guide you through some troubleshooting steps you can take to fix any timeout errors.

As above, upgrading newer versions of WordPress is as simple as clicking the upgrade link, which should show you the following screen:



If however, you see something like the following:

Downloading update from http://wordpress.org/wordpress-2.7.1.zip
Download failed.: Operation timed out after 30000 milliseconds with 351500 bytes received
Installation Failed

Here’s how you can get around the problem:-

1. Go to your WordPress installation folder using cPanel File Manager or your preferred FTP Client such as FileZilla

2. Find the following directory: /wp-admin/includes/

3. Using cPanel File Manger, edit the file named file.php. If you are using an FTP client, download and open the file.

4. Search for the line that looks like this

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

5. Change the default value of 30 to something larger maybe 180 (which is counted in seconds)

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

Save the file and try again after that. It should fix the timeout issue.

IMPORTANT: When you upgrade your Wordpress install, you do overwrite the modifications you've just made resetting it to default - so this method needs to be repeated.

WordPress has a plugin called "Upgrade-Timeout" by Felix Ker which permanently fixes this problem, so you can also try that.

 

 


Older news items:




If you found this tutorial helpful, you can bookmark it with your favourite tracker.

Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!Blinklist!Yahoo!Ma.gnolia!Squidoo!
 
Next >
 
 
RedHat Linux
cPanel Hosting
plesk windows
Fantastico SiteBuilder
 

AUSWEB Web Hosting PTY LTD © 2008 Network Info Data CenterPrivacy PolicySLA Terms and Conditions