Recaptcha javascript error
-
Line 60 in recaptcha.php gets an error grecpatcha is not defined
because it is loaded in the footer but all the other scripts are loaded with DEFER attribute by default, so grecaptcha does not exist at this point.Author needs to surround the inline javasript with:
window.addEventListener(‘DOMContentLoaded’, function() {
( function( grecaptcha, sitekey ) {……….
});I fixed this on my client’s site and turned off updates to this plugin until a fix is published.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Recaptcha javascript error’ is closed to new replies.