WordPress An Unexpected HTTP Error occurred during the API request

Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more ? please check our Monthly server support plans

If you get this error form your wordpress website, you can easily fix this issue by following below mentioned steps,

 

1. If you installed sexybookmarks, delete it from the Installed Plugins in your wordpress admin page.

 

2. Now go to the wp-includes directory and open the file class-http.php, then increase the http_request_timeout. You can see the timeout code on the line number 86.

 ’timeout’ => apply_filters( ‘http_request_timeout’, 60)

 

3. Then go to the wp-admin/includes directory and edit the file plugin-install.php, here also you need to give the value for timeout to 60.

 

$request = wp_remote_post(‘http://api.wordpress.org/plugins/info/1.0/’, array( ‘timeout’ => 60, ‘body’ => array(‘action’ => $action, ‘request’ => serialize($args))) );

 

Now save this and then refresh the page.

Need our help to fix the issue ? Submit Support Ticket Now

View Server Administration Packages

Leave a Reply

Your email address will not be published. Required fields are marked *