tophertopher
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Unexpected HTTP ErrorThis 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(‘https://api.www.ads-software.com/plugins/info/1.0/’, array( ‘timeout’ => 60, ‘body’ => array(‘action’ => $action, ‘request’ => serialize($args))) );Forum: Fixing WordPress
In reply to: Cannot Install Plugins "Unexpected HTTP Error"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(‘https://api.www.ads-software.com/plugins/info/1.0/’, array( ‘timeout’ => 60, ‘body’ => array(‘action’ => $action, ‘request’ => serialize($args))) );Forum: Fixing WordPress
In reply to: An Unexpected HTTP Error occurred during the API request. Try againPrior 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(‘https://api.www.ads-software.com/plugins/info/1.0/’, array( ‘timeout’ => 60, ‘body’ => array(‘action’ => $action, ‘request’ => serialize($args))) );