• Gravity Forms No Captcha reCaptcha always fails after hitting submit (after successful initial verification) with the message: “There was a problem with your submission. Errors have been highlighted below.” at the top, and “CAPTCHA failed. Please try again!” at the bottom.

    I’ve tried excluding the page from W3 Total Cache, and turning off plugins selectively with Plugin Organiser for that page, with no success.

    Site URL

    https://wordpress.org/plugins/gravity-forms-no-captcha-recaptcha/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Simon Barnett

    (@simbasounds)

    This fixed it.

    public/class-gf-no-captcha-recaptcha-public.php, line 280:

    $json_response = file_get_contents( $verify_url );

    Replace with

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $verify_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $json_response = curl_exec($ch);
    curl_close($ch);

    Please update this, Folkhack. Thanks.

    Had the same problem using recaptcha API, because WordPress was behind a proxy.

    Replace:

    $json_response      = file_get_contents( $verify_url );

    With:

    $request = wp_remote_get($verify_url);
    $json_response = wp_remote_retrieve_body( $request );

    Then use standard wordpress proxy client configuration as in:
    http://wpengineer.com/1227/wordpress-proxysupport/

    Time for an update to a great plugin, Folkhack Thanks.

    I replaced the code and still receiving the same error.

    The fix worked!

    My WP is sitting behind a https-connection, so I reckon that was the issue.

    Thanks for the bump into the right direction…

    webdev

    (@ksministries)

    Hello does anyone know if this plug in is still actively being maintained and or developed? WordPress informs us that it has not been tested with its most recent releases. I am on 4.4.2 I also see some temp fixes suggested with no follow up from Folkhack, thanks

    @ksministries don’t know about the development, but it’s working on WP 4.4.2.

    webdev

    (@ksministries)

    Thanks for response. Gravity Forms just emailed us in response to this and said the Googge ReCaptcha is now included in their current beta.

    There’s a GitHub repo for this plugin, but these code suggestions & issues weren’t submitted there so I went ahead and posted a pull request with what fixed it for me: https://github.com/folkhack/Gravity-Forms-No-CAPTCHA-reCAPTCHA/pull/16

    I replaced the code as well as mentioned above and I’m still receiving the “Captcha Failed” error. Both WP and GF are up to date. This plugin has been flawless for the past 2 years for me. I hope they update it soon.

    If the updated code didn’t fix the problem, it might be worth it to get updated to Gravity Forms 2 as they have their integrated reCAPTCHA field updated to the modern reCAPTCHA (removing the need for this No Captcha reCAPTCHA Gravity Forms plugin).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘CAPTCHA failed. Please try again!’ is closed to new replies.