Invalid Site Key Errors
Problem
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
Cause
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.
Solution
To resolve this issue, you can either correct the domain issue or disable Google reCAPTCHA.
Add the Domain to Google
To do this:
- Log in to Google reCAPTCHA.
- Choose your site key from the menu.
- Click Settings.
- Under Domains, add the correct domain name.
- 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 14, 2024