Overcome the error message “An Unexpected Error occurred During the HTTP API requests’ WordPress

Posted on May 5th, 2010 in Free Web Template

Sometimes you will encounter the following error message ‘An Unexpected Error occurred During the HTTP API request’ when did request a page (such as upgrading the plugin, plugins searching etc) through the admin dashboard worpdress.  This problem may occur during the 2 -3 minutes and then after that your wordpress admin panel back to normal.

If you get this error frequently on your dashboard page, here we provide a solution and how to cope. WordPress set the timeout limit for each demand / request. If it crossed the boundaries of certain requests, in which case you will get an error message. If you need to resolve this problem, it can be done by increasing the ‘time limit’ with the value / higher value.

To increase the ‘timeout limit of requests’, into the directory “wp-includes’ your wordpress installation and edit the files’ http.php’.

Here is a screenshot from the snippets of code where you need to make changes.

Detail the changes as follows:

Before the change

PHP:

  1. ‘timeout’ => apply_filters( ‘http_request_timeout’, 5),
After changes
PHP:

  1. ‘timeout’ => apply_filters( ‘http_request_timeout’, 30),
Changes made before is to increase time limit from 5 seconds to 30 seconds, now you will not get an error message back in your wordpress dashboard pages. You can increase this timeout value with the amount of your choice.

As we let you know beforehand that this error message appears because the demand exceeds the page limit of time. This may occur because the plugin is being used or use too many plugins are less than optimal.

access amp article browser Click code com company content course design end Engine error example file function Home html information Internet line Link market message method name online page php process Search service site sitemap System Text time title type Use way Web Website world

Comments are closed.