Invalid Site Key Errors


While using a part of the Client Area that uses Google reCAPTCHA, you see the following error or are unable to log in:

ERROR for site owner: Invalid domain for site key

Google reCAPTCHA Invalid Site Key error.


The Google reCAPTCHA site key is not valid (the domain name is not authorized). This often occurs when you migrate WHMCS to a different domain name or subdomain.


To resolve this issue, you can either correct the domain issue or disable Google reCAPTCHA.

Add the Domain to Google

To do this:

  1. Log in to Google reCAPTCHA.
  2. Choose your site key from the menu.
  3. Click Settings.
  4. Under Domains, add the correct domain name.
  5. Optionally, remove the incorrect domain name.

Disable Google reCAPTCHA

You may want to disable Google reCAPTCHA if, for example, you no longer have access to your Google account.

To do this, run the following command to disable Google reCAPTCHA in the WHMCS database:

UPDATE tblconfiguration SET value = '' WHERE setting = 'CaptchaSetting';

You should now be able to log in to the Admin Area and reconfigure reCAPTCHA.

Last modified: June 24, 2024