• Hi there,

    Firstly, thank you for your great plugin. I’ve used it on all of my client’s websites without any problem. But recently, we have the problem when it always return error message on form submission. I can make sure I ticked the NoCaptcha field and everything is setup correctly.

    After checking, I found the issue in public/class-gf-no-captcha-recaptcha-public.php, line 280:
    $json_response = file_get_contents( $verify_url );

    For any reason, this “file_get_contents” does not work and simply return null. So I replaced this line with below code:
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $verify_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $json_response = curl_exec($ch);
    curl_close($ch);

    It works fine now. I had to apply this fix to many sites. So hopefully you can look at this issue and have it fixed in the next release.

    Cheers!

    https://www.ads-software.com/plugins/gravity-forms-no-captcha-recaptcha/

  • The topic ‘NoCaptcha always returns false on form submission’ is closed to new replies.