Sunday, June 26, 2011

Wordpress Timeout Problem

If you got this error message when you are using the wordpress API to access plugins and themes:

"An Unexpected HTTP Error occurred during the API request in wordpress"

You probably need to do 2 things to fix it:

1. Edit the wp-includes/class-http.php and find the line:


'timeout' => apply_filters( 'http_request_timeout', 5),

then, change to timeout value from 5 to some values like 30 or 60.

2. Increase the memory limit of your php setting to 64MB.

No comments:

Post a Comment