提问前请务必仔细阅读如何排查故障和常见问题。
问题描述:
安装FOF Recaptcha拓展后注册无反应
注册页没有recaptcha复选框
版本recaptcha v2,后台类型checkbox
开启debug模式后无报错
仅在浏览器console有报错
报错内容:
fireDebugWarning.ts:15
[Flarum Accessibility Warning] Button has no content and no accessible label. This means that screen-readers will not be able to interpret its meaning and just read "Button". Consider providing accessible text via the `aria-label` attribute. https://web.dev/button-name <button class="Button Button--icon Navigation-drawer hasIcon" type="button">…</button>
(匿名) @ fireDebugWarning.ts:15
fireDebugWarning.ts:15
[Flarum Accessibility Warning] Button has no content and no accessible label. This means that screen-readers will not be able to interpret its meaning and just read "Button". Consider providing accessible text via the `aria-label` attribute. https://web.dev/button-name <button class="Hero-close Button Button--icon Button--link hasIcon" type="button">…</button>
(匿名) @ fireDebugWarning.ts:15
mount-redraw.js:15
TypeError: Cannot read properties of null (reading 'split')
at e.<anonymous> (index.js:19)
at e.forEach.t.<computed> [as oncreate] (extend.js:35)
at Function.a (render.js:30)
at render.js:971
at Function.a [as sync] (mount-redraw.js:14)
at t.e.show (ModalManagerState.js:25)
at HTMLButtonElement.onclick (HeaderSecondary.js:79)
at $.handleEvent (render.js:888)
a @ mount-redraw.js:15
RecaptchaState.js:34
Uncaught ReferenceError: grecaptcha is not defined
at t.e.getResponse (RecaptchaState.js:34)
at e.<anonymous> (extendSignUp.js:28)
at e.forEach.t.<computed> [as submitData] (extend.js:35)
at e.n.onsubmit (SignUpModal.js:163)
at e.<anonymous> (extendSignUp.js:56)
at e.forEach.t.<computed> [as onsubmit] (extend.js:78)
at $.handleEvent (render.js:888)
e.getResponse @ RecaptchaState.js:34
(匿名) @ extendSignUp.js:28
forEach.t.<computed> @ extend.js:35
n.onsubmit @ SignUpModal.js:163
(匿名) @ extendSignUp.js:56
forEach.t.<computed> @ extend.js:78
$.handleEvent @ render.js:888
调试模式报错内容:
已尝试的解决办法:
重装插件,修改google/recaptcha下文件内的google.com域名为recaptcha.net,禁用可能冲突的插件,重新申请recaptcha秘钥,尝试v3和v2两个版本
网址: