google / recaptcha

PHP client library for reCAPTCHA, a free service to protect your website from spam and abuse.
http://www.google.com/recaptcha/
BSD 3-Clause "New" or "Revised" License
3.48k stars 771 forks source link

Recaptcha V3 script has a syntax error? #339

Open floriginian opened 4 years ago

floriginian commented 4 years ago

First timer - please be gentle.

Issue description Chrome Developer tools show "uncaught syntax error" stemming from the script copied from Google for Recaptcha V3 that runs in the head of a website, HERE.

Uncaught SyntaxError: Unexpected token '}'

The Recaptcha script that runs (and it does seem to work) in website head, as copied from google, is

Chrome developer tools points to the 2nd RBRACE from the bottom as "unexpected token."

Environment

OS name and version: Apache PHP version:7.1 Web server name and version: google/recaptcha version: V3 Browser name and version: Chrome This is my VPS. Go Daddy.

Reproducing the issue

URL (optional): https://southsidebbqva.com Code (optional): open developer tools and look for error. There is only one and this is it.

User steps

  1. Visit page using Chrome
  2. Start Developer Tools
  3. Check out one and only critical error. It is related to recaptcha script.
floriginian commented 4 years ago

today i have new errors relating to recaptcha. I didn't get the first one fixed yet. Still works. I don't like errors though.