fadvee1
Member
Posted 2 years ago #
Please can someone explain this to me and probably what to do.
Each time I try to search for plugin in my dashboard, the result I that always pop up was An
Unexpected HTTP Error occurred during the API request.
And prior to this period I was able to install some plugin like GOOGLE XML SITEMAPS All in One SEO Pack, Broken Link Checker, etc....
So, I was totally surprised when I got the above message.
Thanks.
Hi
I'm having the exact same problem trying to add a new plugin
You are not alone:)
Hope someone out there can help
Best
Antony
Seems to be working now:)
timelesstrends
Member
Posted 1 year ago #
I think I figured it out.
I kept getting the error after installing WordPress and leaving the default email as is. Once I changed the default email (in set-up) to my hotmail account everything started working again.
Good Luck.
eyarnell77
Member
Posted 1 year ago #
I am also getting this error. Tried timelesstrends trick and nothing changed. I find if I reload or try again sometimes I am able to get through but I need to understand why I am getting the error so I can fix it.
ecomonkey
Member
Posted 1 year ago #
The An Unexpected HTTP Error occurred during the API request seems to occur if your server's firewall blocks outgoing connections from www-data.
I discovered this in moving several WP installs to a new server ... and then promptly forgot that I had done it.
Later the problem recurred when commissioning a new server and installing WP ... seems to be a rare issue, thankfully.
tophertopher
Member
Posted 1 year ago #
This worked for me after scouring the 'net for hours:
Prior to WordPress 3.0
Edit file http.php in directory wp-includes and find the http timeout setting. It is by default set to 5. Increase to 30 or 60.
'timeout' => apply_filters( 'http_request_timeout', 60);
WordPress 3.0 and after
Edit file plugin-install.php in directory wp-admin/includes and find the timeout setting. It is by default set to 15. Increase to 60.
$request = wp_remote_post('http://api.wordpress.org/plugins/info/1.0/', array( 'timeout' => 60, 'body' => array('action' => $action, 'request' => serialize($args))) );
in wordpress 3.1 that code is not in the plugin-install.php file I am getting this as of yesterday, anyone?