• Resolved John Antonacci

    (@johnnya23)


    the recaptcha button appears and behaves as expected, but on submission page reloads for a long time then displays:
    Warning: file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: Connection timed out in /home/coalitionforgood/dev.coalitionforgoodgovernance.org/wp-content/plugins/constant-contact-forms/vendor/recaptcha/src/ReCaptcha/RequestMethod/Post.php on line 68

    Failed reCAPTCHA check

    tried with 2 different sets of api keys.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hello @johnnya23

    Interesting that it’s doing that, because I believe all that should already be done before the redirect.

    Can you verify that you have a custom redirect location in place for this specific form?

    Also it looks like you’re still on version 1.4.1. Can you try doing the update to 1.4.2 and see if that helps with this?

    Thread Starter John Antonacci

    (@johnnya23)

    updated and added redirect (didn’t have one previously) same result. this is the debug log

    [2018-11-02 13:43:37] reCAPTCHA.INFO: Failed to verify with Google reCAPTCHA [“Extra information”,[[[“invalid-json”]]]] []
    [2018-11-02 13:47:32] reCAPTCHA.INFO: Failed to verify with Google reCAPTCHA [“Extra information”,[[[“invalid-json”]]]] []

    Plugin Author Constant Contact

    (@constantcontact)

    Hmm.

    Previously, the information found at https://stackoverflow.com/questions/30106668/nocaptcha-returning-error-invalid-json/30552041#30552041 had helped with a similar “invalid-json” error. However we made adjustments to the plugin to account for the possibility of file_get_contents not being available in the way we need.

    I’m wondering if the connection timeouts mentioned in the original post in the thread are contributing to it this time. Possibly you or your hosting support could help try and adjust connection timeout limits, or check for any possible firewalls/blockers that would prevent contacting the Google services to help verify submitters.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘recaptcha error on submission’ is closed to new replies.