[Autoblog] Auto Blog is not working.

We get the following error:
WP HTTP Error: cURL error 28: Operation timed out after 10001 milliseconds with 934 out of 10771 bytes received

What should be done to resolve this? What do we ask our hosting partner to do?

  • Adam Czajczyk
    • Support Gorilla

    Hello Robert,

    I hope you're well today and thank you for your question!

    In case of Autoblog (where WordPress is connecting to some external, 3rd party sites) this error might be caused by various issues: it might be a slow "target" site or some sort of a firewall/protection on a "target" site that denies connection or there's some conflict or mis-configuration on your site/server.

    I'd start with a small hotfix to increase timeout. To apply it to your site, please:

    1. create an empty file with a .php extension (e.g. "fix-curl-timeout.php")
    2. using a "clean text" editor such as e.g. Notepad++, Sublime or similar, edit the file and add following code inside:

    function fix_http_request_args($r) {
    	$r['timeout'] = 15;
    	return $r;
    add_filter('http_request_args', 'fix_http_request_args', 100, 1); 
    function fix_http_api_curl($handle)
    	curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 15 );
    	curl_setopt( $handle, CURLOPT_TIMEOUT, 15 );
    add_action('http_api_curl', 'fix_http_api_curl', 100, 1);

    3. Upload that file, using FTP or cPanel File Manager, to the /wp-content/mu-plugins folder of your WP install; if there's no "mu-plugins" folder inside "wp-content" folder, please create an empty one there.

    Let me know if that helped, please!

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.