HostGator.com » Support Portal

WordPress error during the API request

Here is a fix for a WordPress error which we have seen.

Error: *An Unexpected HTTP Error occurred during the API request*.

If this error appears when trying to view plugins or themes, edit the wp-includes/http.php file.

Change this line:
'timeout' => apply_filters( 'http_request_timeout', 5),

to this:
'timeout' => apply_filters( 'http_request_timeout', 30),

Finally, refresh the Wordpress page.


Article Comments

gmiller
Hi, when installing a new WP theme this message was displayed:

Fatal error: Call to undefined function add_theme_support()

Now I can longer access my admin or anything else.
Some suggestions in searches thought it may be a hosting problem.
Thanks

HostGator
Please consult the related article, "WordPress blog blank pages".

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment