首页 > 解决方案 > Google reCaptcha v2 recaptcha__en.js 错误

问题描述

我们正在管理许多 magento 1.9 / openmage 站点,并且我们正在使用 amasty google recaptcha。我们刚刚注意到,在许多站点中,不可见的 recaptcha v2 或 v3 不再起作用。此类问题似乎是由于https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js脚本中的 js 错误,该脚本由 google 直接加载。

堆栈如下:

未捕获的 TypeError:this.each 不是函数

findAll http://xxx.local/js/prototype/prototype.js:883

t https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:100

https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:677

d https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:395

y https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:168

y https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:131

wK https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:609

f https://www.gstatic.com/recaptcha/releases/eKRIyK-9MtX6JxeZcNZIkfUq/recaptcha__en.js:319

绑定http://xxx.local/js/prototype/prototype.js:391

submitProtectedForm http://xxx.local/customer/account/login/:1116

checkForms http://xxx.local/customer/account/login/:1105

http://xxx.local/customer/account/login/:1145

setInterval 处理程序* http://xxx.local/customer/account/login/:1141

响应者http://xxx.local/js/prototype/prototype.js:5575

开火http://xxx.local/js/prototype/prototype.js:5734

_methodized http://xxx.local/js/prototype/prototype.js:438

fireContentLoadedEvent http://xxx.local/js/prototype/prototype.js:5820

EventListener.handleEvent* http://xxx.local/js/prototype/prototype.js:5840

http://xxx.local/js/prototype/prototype.js:5848

有没有其他人遇到过这样的错误?

标签: invisible-recaptcha

解决方案


推荐阅读