• Nick Mendoza

    (@mobilecodemedia)


    I installed the Chitika plugin and came across the same connection errors that everybody else in the forum seemed to have when validating credentials. After inspecting the source code, I found that the chpremium_test_username function within premium.php was trying to connect using curl, SSL version 3. The $data variable is returned as false, so by checking the curl error:

    error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

    This probably was turned off on Chitika’s server when SSLv3 was found to have security issues awhile back: https://access.redhat.com/articles/1232123

    Navigate to about line 568 AND 595 in premium.php, and replace the curl option:

    curl_setopt($curl, CURLOPT_SSLVERSION,3);

    with:

    curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);

    These changes worked on my installations and the ads are served correctly.

    https://wordpress.org/plugins/chitika-premium/

The topic ‘Chitika Plugin Fix’ is closed to new replies.