ReCptach failed with 2.8.99

Viewing 3 posts - 1 through 3 (of 3 total)
#48036

Pat gream
Member

Hi All,

After update to 2.8.99 ReCaptcha control failed : the control is positive (green sign) and a message “Captcha Verification Failed!” is display instead of display download button. I also use Google Captcha (reCAPTCHA) by BestWebSoft with same key/pass and it work fine. I set WP debug mode and I have no error message and it worked fine in version 2.7.

Do you have an idea ?

#48066

Jass
Moderator

Hi,

Would you mind providing us with login credentials so we can take a closer look? Your site seems to be on Under Construction Mode. To do this, you can make a post with the following info:

– Link to your site
– WordPress Admin username / password

Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

#48068

Pat gream
Member

Hi Jass,

I am sorry, i have no access to FW and it limit admin to 2 adresses. I found a work around, it seems to come from remote_post and decode response, I replace by the code bellow and it works fine :

if(isset($_POST[‘reCaptchaVerify’])){
$retraw=file_get_contents(“https://www.google.com/recaptcha/api/siteverify?secret=”.get_option(‘_wpdm_recaptcha_secret_key’).”&response=”.$_POST[‘reCaptchaVerify’].”&remoteip=”.$_SERVER[‘REMOTE_ADDR’]);
$ret = json_decode($retraw,true);

// $ret = remote_post(‘https://www.google.com/recaptcha/api/siteverify’, array(‘secret’ ► get_option(‘_wpdm_recaptcha_secret_key’), ‘response’ ► $_POST[‘reCaptchaVerify’], ‘remoteip’ ► $_SERVER[‘REMOTE_ADDR’]));

if($ret[“success”] == true){
$_SESSION[‘_wpdm_unlocked_’.$file[‘ID’ = 1;
update_post_meta($file[‘ID’], “__wpdmkey_”.$key, 3);
$download_url = wpdm_download_url($file, “_wpdmkey={$key}”);
$data[‘downloadurl’] = $download_url;
}
else{
$data[‘error’] = __(“Captcha Verification Failed!”, “wpmdpro”);
}

Thks for your plugin,

Payt

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘ReCptach failed with 2.8.99’ is closed to new replies.