-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reCAPTCHA error message #2224
Comments
Hey, I am experience the same problem, tried version 3.0.15 and 3.0.13 but unfortunately it isn't working on both versions. Will try other versions too. the g-recaptcha-response token resets on the second page, so the form will be marked as spam what I see. |
Just to be clear, do you have the "Show on All Pages" setting enabled for the form captcha settings? If this is the case, there's a known issue that I'm working on with multi-page forms for that. For now, I'd recommend sticking to a single captcha, placed on the last page of the form. |
@yonatangunops Can you comment on how you're rendering the form? I note you mention using custom templates, so I want to confirm that's all correct. And any form of caching enabled (Craft template caching, static caching, Blitz, etc)? |
Here is how the form was rendered. I have used the first if to reset the form if someone is coming from a different page.
Yes, I'm using a custom template but I'm only using that to override the file upload field just for customization. He's the code I used to overwrite it.
We use craft template caching but it's not enabled on the form. Only used on the footer and the menu of the site. |
Great, just wanted to confirm those things before proceeding. Your rendering shouldn't pose an issue I don't believe. Can you let me know what "reCAPTCHA type" you have set? I've tested v3 and v2, without seeing that error. But, from what I can tell, there's an issue loading the reCAPTCHA script from |
@engram-design I'm using the reCAPTCHA enterprise. |
recaptcha settings |
Right, I'm managing this via https://www.google.com/recaptcha/admin/enterprise but I can see you're on v3/score based. Is there any network errors for loading the JS for reCAPTCHA - i.e. the |
The issue was resolved by disabling google search widget which also used its own recaptcha. Thanks for taking the time to help with this. |
Is it possible to make sure that reCAPTCHA could work together with google search widget without any issue? |
I'll have to investigate what the google search widget does, but thanks for narrowing that down! |
Describe the bug
I setup recaptcha with reCAPTCHA enterprise and the keys are set. I have tried all script loading method options. But I mostly get the error message on console that you see below. The recaptcha works when this error doesn't appear but if the error is shown it returns me back to the same page.
Steps to reproduce
Form settings
Craft CMS version
4.13.9
Plugin version
2.1.37
Multi-site?
Yes
Additional context
No response
The text was updated successfully, but these errors were encountered: