How to fix Google reCAPTCHA: ERROR: Invalid domain for site key

How to fix Google reCAPTCHA: ERROR: Invalid domain for site key

If you are using reCAPTCHA on your site and you see the error ‘ERROR for site owner: Invalid domain for site key’, this means your site key is no longer valid.

Also, your website url must match exactly what is included in the site key settings. Subdomains don’t need to be added separately. Changes to the domains list may take up to 30 minutes to take effect.

My fix: Login by https://www.google.com/recaptcha/admin#list >>> choose domain >>> remove old domain and add new domain. 

Done.

Again login to website.

Please register a new key to resolve this issue. If you cannot resolve your issue, feel free to open a help desk ticket for further assistance.
Google reCAPTCHA Invalid Site Key

ReCAPTCHA couldn’t find user-provided function#

This error may be seen when another WordPress plugin is active that loads the reCaptcha in a different way, and included the script on every page. We’ve specifically seen this with the ‘Pie Register’ plugin. Learn how to find a conflict in WordPress to prevent the reCAPTCHA from failing.

Google ReCAPTCHA in localhost#

If you are working in a local environment, reCAPTCHA will work. However, it will show the message ‘The reCAPTCHA is currently running on localhost’. This is normal behavior and the message will disappear when reCAPTCHA is used on a live site.
Google reCAPTCHA localhost

Cannot contact reCAPTCHA#

When a page with a reCAPTCHA is loaded, you may see the error “Cannot contact reCAPTCHA. Check your connection and try again.” One reason we have seen for this error, is the reCAPTCHA key is set to v2 but your forms are using invisible reCAPTCHA. Learn how to switch your keys to Invisible reCAPTCHA.

Checkbox reCAPTCHA is not showing#

The reCAPTCHA relies on javascript to appear and validate. If nothing appears, this is a common sign of a javascript error on the page. You may also have another reCAPTCHA plugin installed that isn’t playing nicely, like Google Captcha (reCAPTCHA) by BestWebSoft.

reCAPTCHA not working in Chrome#

We have seen the reCAPTCHA fail in a certain browser. The cases we have seen ended up not being a browser issue, but related to page caching for logged out users. If the reCAPTCHA is working for you in one browser and not another, start by disabling any caching on your site.

Invalid key type#

If you are using reCAPTCHA on your site and you see the ERROR for site owner: Invalid key type message, this means that you are using an incorrect reCaptcha key type. For example, V3 keys are not compatible with V2 reCaptcha, and V2 keys are not compatible with Invisible reCaptcha. Key types are not interchangeable.

Please make sure that your generated key type matches with the reCaptcha type you have configured in your Formidable → Global Settings → reCAPTCHA. If you cannot resolve your issue, feel free to open a help desk ticket for further assistance.
Google reCAPTCHA Invalid Key Type

What is Google reCAPTCHA?#

Google reCAPTCHA is a program that judges whether a user is a human or a robot. You have probably seen some variation of reCAPTCHA.
Add Google reCaptcha for spam protection

CAPTCHAs are used by many websites to prevent abuse from ‘bots’, or automated programs usually written to generate spam. Bots cannot easily submit forms protected by reCAPTCHA. Formidable Forms offers one-click reCAPTCHA (V2) and invisible reCAPTCHA. When setting up reCAPTCHA for your site’s forms, you will choose between these two options.

Set up reCAPTCHA#

  1. Create a free account for Google reCAPTCHA if you have not already done so.
  2. Register the site where you want to use reCAPTCHA. In the setup, please choose between reCAPTCHA V2 and Invisible reCAPTCHA. You will then receive a Site key and a Secret key for the site.
  3. Go to your site’s Formidable → Global Settings → reCAPTCHA. Insert your Site key and Secret key.
    Add Spam Google reCaptcha key
  4. Set the reCAPTCHA type to either ‘Checkbox (V2)’ or ‘Invisible’. Only one type of reCAPTCHA is allowed per site.
  5. Set the default language for your reCAPTCHA.
  6. If you will be using multiple reCAPTCHA fields on one page, you must check the option for ‘Allow multiple reCAPTCHAs to be used on a single page.’
  7. Add the reCAPTCHA field to each form you would like protected.
    Add Spam Google reCaptcha field
    If this is a multi-paged form, place the reCAPTCHA on the last page.

Field options#

A reCAPTCHA field has the following options:
Google reCAPTCHA Field OptionsGoogle reCAPTCHA Field Options

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *

eighteen + eighteen =