albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
603 stars 163 forks source link

Uncaught Error: Missing required parameters: sitekey #94

Closed JamesPoel closed 5 years ago

JamesPoel commented 6 years ago

Console error:

Uncaught Error: Missing required parameters: sitekey at new es (recaptchaen.js:402) at new ys (recaptchaen.js:408) at Ks (recaptchaen.js:416) at recaptchaen.js:416 at Array.forEach () at Ls (recaptchaen.js:416) at vs (recaptchaen.js:421) at ws (recaptchaen.js:408) at recaptchaen.js:423 at recaptcha__en.js:431

My INVISIBLE_RECAPTCHA_SITEKEY and INVISIBLE_RECAPTCHA_SECRETKEY env variables are set.

jimmerioles commented 5 years ago

~I am also experiencing this issue, only happens in staging not in local.~

In my case it was due to unregistered domain in google recaptcha settings plus around 30mins activation. My bad :v:

bhushan commented 5 years ago

i am also getting same issue

albertcht commented 5 years ago

Which version of Laravel are you using?

bhushan commented 5 years ago

Using laravel 5.7. I hv figured it out.. but getting uncaught promise null error.. cant able to submit form at all..

albertcht commented 5 years ago

I can't figure it out until you give me more specific description or example code.

bhushan commented 5 years ago

I did whatever things are in documentation.. but could not be able to send form data.. when i checked console . It had uncaught promise null error

urmila-patel commented 5 years ago

Same issue : Laravel 5.7

recaptchaen.js:488 Uncaught Error: Missing required parameters: sitekey at new gh (recaptchaen.js:488) at new O3 (recaptchaen.js:498) at N1 (recaptchaen.js:509) at recaptchaen.js:509 at Array.forEach () at op (recaptchaen.js:509) at rh (recaptchaen.js:502) at Rp (recaptchaen.js:499) at recaptchaen.js:513 at recaptchaen.js:532

app.js:46717 [Vue warn]: Error compiling template:

albertcht commented 5 years ago

Unable to reproduce on a fresh new Laravel 5.7. See https://github.com/albertcht/invisible-recaptcha-example

BTW, are you using this package in a Vue.js project. This package doesn't support Vue.js. This issue will be closed shortly if there's still no reproducible details.