Error: grecaptcha.execute is not a function
-
Hello,
I get this annoying error in my console logs : “grecaptcha.execute is not a function”.
(I’m in Contact Form 7 v5.1.4 but I think it appeared before)When I click on the error, I see the error comes from wp-content/plugins/contact-form-7/modules/recaptcha.php, line 78.
I’ve searched on the web for nearly an hour, when I came here: https://developers.google.com/recaptcha/docs/v3
From that page, it seems like the code lacks the “grecaptcha.ready” part in order to work properly.I added it before the call to grecaptcha.execute in the code, and now the error seems to be gone.
I’m creating this topic because I guess other people have/will have the same issue as me, and also to know if there is a better solution (or if this is even a solution).
I’m afraid that this “fix” will be overwritten when I update Contact Form 7 next time…
Thanks!
- The topic ‘Error: grecaptcha.execute is not a function’ is closed to new replies.