• Resolved jannnnnneke

    (@jannnnnneke)


    Hi there! I got sometimes error on my contact form and I dont know why. The error is ‘Ongeldige CAPTCHA’, dutch for ‘invalid captcha’. The error message in settings when site thinks its spam is ‘reCAPTCHA verificatie mislukt. Probeer het opnieuw.’, so its a different error.

    I checked the captcha key but that is correct and the right domain is entered in Google V3 Recaptcha.

    Some requests are received, but not all and we do not see why. For now we turned off the captcha but not sure if that is the solution.

    Can you help me? Thanks a lot!

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @jannnnnneke

    I hope you are doing well today.

    1. Does site use any cache plugin or any server side cache? If so can you disable cache for some time and see if issue will still exist?

    2. Can you not only remove the captcha field but also navigate to Forminator -> Settings -> CAPTCHA and from UI generate “new” API keys and fully remove old ones and re-add, and then the captcha field and see if this helps?

    Kind Regards,
    Kris

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Thank you! I cleared cache on server and in WP rocket, and regenerated a new captcha key. On my side the form is working, but my client send me a picture with the same melding ‘invalid CAPTCHA’.

    I removed the captcha field and let him test again, but he gets the same message. And he received mails from website visitors who can also not fill in the form, but some people can.

    So, the error message is about the captcha but when I remove it you still get the captcha error.. any idea? We dont have any updates of Forminator or WordPress. Hope you have another solution! Thank you!

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Any idea? We dont know if we miss quote requests now..

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Update: we tried recaptcha v2 but we still get the same ‘invalid CAPTCHA’ error. Than we removed the whole captcha everywhere included the api keys, cleared cache but still the same error.

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @jannnnnneke

    Thank you for reply!

    There are two very significant information in your responses:

    1. “the error message is about the captcha but when I remove it you still get the captcha error.

    2. “Than we removed the whole captcha everywhere included the api keys, cleared cache but still the same error

    Technically speaking, it’s literally impossible to trigger captcha-related error if there is no captcha. And if you removed it completely, it is not there.

    This clearly confirms that this is, in some way, still a matter of either cache or yet another instance on captcha on site. I understand that you checked the latter and I’d tend to say it’s also less probable then caching issue.

    If it comes to cache, so far – at least that’s what I understand – you focused on the on-site cache (via WP Rocket). But that may not necessarily be the only type of cache:

    – quite often there’s some kind of a server-side cache active, also often not directly integrated with site/WordPress (which would mean it would need to be purged/disabled directly through server/hosting account settings); a “traceroute” to your site reveals that hostname includes “varnish” word which suggests there may be Varnish cache active on the server; this would be a very “strict”/”stubborn” caching so if it’s not connected to the site it may be causing such issues.

    – if the site is behind some CDN/proxy (such as e.g. CloudFlare or similar), there would usually also be a caching layer and, in most cases, it actually also serves cached versions of assets such as e.g. JS scripts – and that may in some cases cause “discrepancy” between actual site configuration and scripts (and how they work) that user browser gets; but then clearing such cache should actually help out of the box

    – and finally – less likely but not impossible – it may be a matter of browser-caching policy; if some browsers got cached captcha/form related JS scripts that were e.g. incorrect (at the time being) or are no longer used on site (due to captcha being removed) and are still applied by browser, it may also cause similar issues.

    So ultimately, I would suggest trying to explore these three (especially first and last) things more. PLease check with your host if there is any server-level cache (especially Varnish) and if you can purge it and- that would be ideal – “connect” to site/to your WP Rocket so it would be “in-sync “with site.

    And to confirm/rule out if browser cache is involved, you can temporarily install this free plugin on site

    https://wordpress.org/plugins/cachebuster/

    to force-override browser cache and see if with it enabled the same issue happens (so if captcha error happens despite no captcha on form).

    Kind regards,
    Adam

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Hi Adam!

    We turned off the server-side caching, clear cache in wp rocket everytime and installed cachebuster (you only have to activate the plugin right?), but still got some issues. I tried hCaptcha and that was working fine, than tried without captcha.. also working, and than tried the Google Recaptcha but failed again. But the problem is when I select the v2 checkbox I cant see the checkbox.

    So I created another simple contact form and created new contact page (/contact-test) with the same layout but different form (so not duplicated the post, created new post and used Divi layout of already existing page). There the same problem is happening. HCaptcha is working fine, but Google Recaptcha not. Selecting v2 will not show a checkbox so I keep getting the error ‘invalid CAPTCHA’.

    So there is something going wrong with the Google Recaptcha and I dont know how to fix it. I’m using your plugin on other websites with Divi and all working fine. I tried creating new recaptcha keys but wont help. Looks like there is already an google recaptcha on the website or something? But I’m not using it somewhere else as far as I know. I also removed the css code to hidden the recaptcha badge but wont see the badge on the right side of the page.

    Hope you can still help us! Thanks!

    • This reply was modified 9 months, 1 week ago by jannnnnneke.
    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @jannnnnneke,

    Sorry to hear about the issues noticed.

    Other aspects for such an issue to occur is due to conflicts. Could we know whether you tired to rule that out?

    You can check the following flowchart on how to run a conflict test:
    https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    The conflict test should give a better idea of whether its more specific within the form or Google captcha settings.

    If the issue is still the same even after than then please do check whether it’s possible to share the site URL where you face the issue, so that we could have a better idea.

    Please do let us know how that goes.

    Best Regards,

    Nithin

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @jannnnnneke,

    We haven’t heard from you in a while, we will go ahead and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind regards,
    Zafer

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Hi! Sorry for the late reply, we tested a lot.. today we made a copy of the website and placed it on another domain on another server. There the Google Recaptcha is working fine, but on the live site it still isnt. I didnt made any changes to the site on the other server, just a copy of the site..

    So you would think the problem is on the server, but server cache is already deactivated and old cache files from server also are deleted.

    This is the live contact page: bit.ly/4a5FUN1. At the moment Google Recaptcha v3 is activated but in a few ours I go back to hCaptcha because otherwise the form is not working.

    This is the contact test page where I created simple form but with Google Recaptcha v2 activated: bit.ly/488OFEH.

    Any idea what we can do next?

    Thread Starter jannnnnneke

    (@jannnnnneke)

    Hello! Here I am again, we found the solution: WP rocket plugin. We thought it was caching so we installed the ‘disable page caching plugin’ from WP rocket, but that didnt help. Now we totally deactivated the WP rocket plugin and now the recaptcha is working good everywhere.

    Do you have any idea what setting of WP rocket could have caused this issue? I will ask WP rocket as well!

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @jannnnnneke,

    Do you have any idea what setting of WP rocket could have caused this issue? I will ask WP rocket as well!

    Glad to hear you have managed to rule out the issue. It’s tough to say without replicating the issue, however, maybe you could try adding “Recaptacha” as an exclusion under Delay JavaScript Execution and see if that helps.

    If you still notice the issue then it would be better to check WP Rocket for a better idea.

    Please do let us know what they have to say regarding the issues noticed.

    Kind Regards,

    Nithin

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error ‘invalid CAPTCHA’’ is closed to new replies.