Forum Replies Created

Viewing 5 replies - 151 through 155 (of 155 total)
  • Hi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
    ‘sslverify’ => false

    Keep me informed if it solve the problem.

    Ok, patch the function like this while new version of plugin are being released :

    public static function wp_cassify_do_ssl_web_request( $url, $ssl_cipher ) {

    if (! function_exists ( ‘curl_init’ ) ) {
    die( ‘Please install php cURL library !’);
    }

    $ch = curl_init();

    curl_setopt( $ch, CURLOPT_HEADER, false );
    curl_setopt( $ch, CURLOPT_URL, $url ) ;
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
    curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 1);

    //curl_setopt( $ch, CURLOPT_USERAGENT,’Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13′ );
    curl_setopt( $ch, CURLOPT_SSLVERSION, 0 );

    if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
    curl_setopt( $ch, CURLOPT_VERBOSE, true );
    }

    $response = curl_exec( $ch );

    if( curl_errno( $ch ) ) {
    if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
    $info = curl_getinfo( $ch );
    die( ‘Curl error: ‘ . curl_error( $ch ) . print_r( $info, TRUE ) );
    }
    else {
    die( ‘Curl error: active WP_DEBUG in wp-config.php’);
    }
    }

    curl_close( $ch );

    return $response;
    }

    Hi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
    ‘sslverify’ => false

    Keep me informed if it solve the problem.

    If it’s not work, reinstall the previous version 1.5.6, and then i publish a fix quickly.

    Hi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
    ‘sslverify’ => false

    Keep me informed if it solve the problem.

    If it’s not work, reinstall the previous version 1.5.6, and then i publish a fix quickly.

    Hi,

    On latest release, i ve’ rewrited wp_cassify_do_ssl_web_request to not using php cURL function. I use the native WordPress function ‘wp_remote_get’ to perform the webrequest instead of php-cURL functions.

    I ve not succeed to reproduce the bug.

    In your wp-config please set this :
    @ini_set(‘display_errors’,’Off’);
    @ini_set(‘log_errors’,’On’);
    @ini_set(‘error_log’,’/var/www/your-website/phperrors.log’);

    Then in classes/wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function write this before return :

    error_log( print_r( $response[‘body’], TRUE ) );

    At the end, send me the phperrors.log content. This will show the CAS Ticket content after serviceValidate.

Viewing 5 replies - 151 through 155 (of 155 total)