Site Keys Verified, But reCaptcha shows invalid site key?

6,228 views
Skip to first unread message

Cody Hockin

unread,
Aug 12, 2016, 8:49:01 PM8/12/16
to reCAPTCHA
Hello There,

I would appreciate some help on this issue. I had reCaptcha working on my site. It was being used in contact form 7 forms. The reCaptch stopped showing when the form loaded, but when someone would fill out the form it would say invalid site key. I then double checked my keys and they were correct. The problem persisted. I deleted the plugin from wordpress along with the files, deleted the site key and created a new one. Then I downloaded reCaptcha again and entered the new site key. Still getting the same error "Invalid Site Key." 

Any thoughts?
Cheers,
–C

Kalisa Aime chrispin

unread,
Sep 2, 2016, 11:43:05 PM9/2/16
to reCAPTCHA
i have same problem, i can't find a way to solve this error!
ERROR for site owner: Invalid site key
i tried following methods but i don't know why its can't be solved

When you see "Invalid domain for site key", then the key is okay in general, but not for your domain. The server can not test this case, so an effective lockout prevention is not possible.

You will either need one of the following: - access to the settings for your sitekey on

reCaptcha API key administration - access to your WordPress installation (via SSH or FTP) or database access - database access

With API key admin

  1. Look at source code of the login page.

  2. Find the part saying data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" (The XXX-part should be your sitekey.)

  3. Go to the Google reCaptcha API key administration

  4. Find the list entry with the sitekey from step 2

  5. If lockout prevention is enabled you can simply delete the key set up a new one. If not enter your domain name at "Domains" in a new line and wait up to 30 minutes.

With FTP Access:

  1. Add this line of Code somewhere at the end of your theme functions.php:add_filter('wp_recaptcha_required','__return_false');

    This will disable the chaptcha everywhere.

  2. Set up a new keypair and test it.

  3. Remove the line above from your theme functions.php.

If you have Database access

  1. Execute the following SQL-Commands in your Database: DELETE FROM wp_options WHERE option_name = 'recaptcha_publickey'; DELETE FROM wp_options WHERE option_name = 'recaptcha_privatekey';

    (Please note that wp_options might have a different prefix in your installation.)

  2. After the login you will see a message asking you to set up the API keys.

  3. Set up a new keypair on Google and test it.

If none of these works for you

That's too bad...

Reply all
Reply to author
Forward
0 new messages