verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 68 forks source link

ReCAPTCHA was unable to load #1911

Closed lukasNo1 closed 3 weeks ago

lukasNo1 commented 3 weeks ago

Describe the bug

I have a weird bug with recaptcha.

After the form is loaded, when you click on the recaptcha v2 checkbox, it just loads for around 15 seconds and then an error is thrown in the console (which is not very helpful cause the error is "undefined").

The bug happens on all forms across all browsers. It happens locally in an uncached environment and on production with fullpage cache and the refreshForCache script.

Have you ever encountered this bug?

image

Steps to reproduce

Not sure.

Form settings

Craft CMS version

4.9.5

Plugin version

2.1.18

Multi-site?

no

Additional context

No response

engram-design commented 3 weeks ago

Not something I've seen in action yet, but easy enough to replicate by disabling the internet. It also seems like a timeout issue just reaching the reCAPTCHA servers.

Have you tried on another network, or via a VPN just to check it's not just a network connectivity issue?

lukasNo1 commented 3 weeks ago

Yes, I tried it over a vpn, it was also reported to me by several users of the website

lukasNo1 commented 3 weeks ago

ahh damn... i think i found the problem. The project already loaded the https://www.google.com/recaptcha/api.js once for another usecase and then formie added it a second time.