hi,
I had to replaced a code by
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");
}
header("Content-type: application/json");
echo json_encode($data);
die();
}
And its working.
Can you try again?
Thank you