Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello, I have 5 sites at 1Dollar-webhosting all with the same problem and the tech support doesn’t even answer their email.

    I tried the plugin described above (remember to enclose the code in a <?php (at the beginning) and ?> (at the end)

    and it doesn’t work

    The plugin loads fine but I get the same timeout errors and Core Control shows an error on the cURL transport.

    HOW TO FIX THIS ERROR ?????????? My wp-o-matics are all stalled !!!

    Thanks for any expert’s help out there !! (my hoster sure isn’t going to help

    <?php
    /*
    Plugin Name: Curl Timod
    Version: 1.0
    Plugin URI: https://none
    Description: modify timeout vals
    Author: fix
    */
    //adjustments to wp-includes/http.php timeout values to workaround slow server responses
    add_filter(‘http_request_args’, ‘bal_http_request_args’, 100, 1);
    function bal_http_request_args($r)
    {
    $r[‘timeout’] = 15;
    return $r;
    }

    add_action(‘http_api_curl’, ‘bal_http_api_curl’, 100, 1);
    function bal_http_api_curl($handle) //called on line 1315
    {
    curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 15 );
    curl_setopt( $handle, CURLOPT_TIMEOUT, 15 );
    }
    ?>

Viewing 1 replies (of 1 total)