HTTP Error occurred during the API request

Posted: 4p in Wordpress

Here we explaning how you can fixed the ” error An Unexpected HTTP Error occurred during the API request ” in the wordpress websites.

An Unexpected HTTP Error occurred during the API request.

It’s very simple just for begin go to the Installed Plugins in your admin page and delete the SexyBookmarks if you installed it.

1 – go to the FTP for your website

2 – go to the wp-includes directory and open the class-http.php go to the line number 86 find number 5 Increase to 60. ’timeout’ => apply_filters( ‘http_request_timeout’, 60),

3 – go to the wp-admin/includes/plugin-install.php go to the line number 44 find the number 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))) );

Please wait for some seconds and click retry again or refresh the page.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s