We are facing a reCAPTCHA problem on multiple websites. These websites are up-to-date (modx 3.0.3) and we use Formit to send forms. However, at random moments, recaptchav2 displays the following error message (client-side):
timeout-or-duplicate hostname-mismatch action-mismatch score-threshold-not-met.
The problem does not occur with every form submission, which makes it even more difficult to trace the problem. However, I have configured the problems to now appear in the error log of modx. This results in the following error message:
We have tested ourselves and have identified the problem.
The Recaptcha error is showing up when:
In the Safari browser (mobile and desktop), the error message appears if the submit button is clicked twice (with 1 second between the two clicks). So, if the page loads slowly and an impatient person clicks a second time, the error message appears.
The error message appears in all browsers if it takes more than 2 minutes to fill in the form. Especially with longer forms where details need to be filled in, this is a problem.
+1 for Akismet. You do have to pay for it, but you can pick the payment (last time I checked). It’s very easy to install MarkH’s extra and to get it working. In my experience it’s not only better at blocking spam than reCaptcha, it’s much more reliable as well.