• Resolved steindialog

    (@steindialog)


    Dear developer,

    unfortunately all my users (not registered) getting an error message, if they try to submit their comment on my woocommerce shop products.

    Error: Google reCAPTCHA verification failed. The response is no longer valid: either is too old or has been used previously.

    Screenshot: https://www.screencast.com/t/yQokb1QRIiOa

    The problem does not exist, if the user has been registered himself and submit then a comment after he has been logged in.

    Please help to find out why this happens and how to solve this to enable unregistred users to submit their comment as well.

    I’m looking forward to your advices.

    Best regards, Alex

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I believe what you have is the same problem I am having;

    it is caused due to bug in the plugin that in some login cases; like
    login with email instead of username, it may call the wp_authenticate_user hook twice.

    as I see the problem is to change the link number 300 (I believe), in the simple-google-recaptcha.php file

    from:
    $this->recaptchaResponse();

    to this:
    if ( !$this->recaptchaResponse ) $this->recaptchaResponse();

    that way, it wont try to verify twice if the hook is already processed one response.

    I am not sure if @minor can confirm this issue, I did it on my local and it helped, I am using multiple authentication methods, so the waterfalls pass from one to another, and therefore in some cases fetching recaptcha response more than once.

    Plugin Author Minor

    (@minor)

    Hi guys,

    Looks like different error. I didn’t get this error when I add comment on WooComerce product page. I have no idea what could be wrong – how to fix it.

    Anyway I agree, that @idokd proposal should be implemented, so I did it (thank you!), but I don’t think that this could fix that reported error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: Google reCAPTCHA verification failed. The response is no longer valid:’ is closed to new replies.