The login captcha says ‘ERROR: (something somthing)’. What can I do?
If it says ‘Invalid sitekey’ and you checked the ‘Prevent lockout’ option on the plugin settings (it’s on by default) you can log in with an administrator account and ignore the captcha. If the keys are really invalid, the plugin will let you in, so you can set up a new keypair.
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
- 01Look at source code of the login page.
- 02Find the part saying data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" (The XXX-part should be your sitekey.)
- 03Go to the Google reCaptcha API key administration
- 04Find the list entry with the sitekey from step 2
- 05If 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:
- 06Add 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.
- 07Set up a new keypair and test it.
- 08Remove the line above from your theme functions.php.
If you have Database access
- 09Execute 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.)
- 10After the login you will see a message asking you to set up the API keys.
- 11Set up a new keypair on Google and test it.
If none of these works for you
That’s too bad…
I can’t get it to work with my custom comments form. Will you fix for me?
Nope. I cannot give support on your individual projects for free, no matter how many one star reviews you will give me. Have a look at the project wiki or find a WordPress coder.
Privacy: Will the captcha send the visitors IP address to google?
Yes and no. The captcha verification process, comming into effect after the user has solved the challenge does not require the disclosure of the visitors IP address, so it is omitted.
But everything related to the displaying of the captcha widget like the challenge image, the JavaScripts and so on is loaded directly from Google and is very likely to be logged, evaluated and stored forever.
In other words: Google knows which (recaptcha protected) website is accessed from which IP.
If that’s an issue for you, you better use a self hosted solution.
Will you support plugin XYZ?
If XYZ stands for a widely used free and OpenSource plugin in active development with some 100k+ downloads I will give it a try. Just ask.
If XYZ is some rarely used plugin (about 1k+ active installs or so), I will accept pull requests on github and push it to the WP repository. Please note that in such cases I will not feel responsible for code maintainance.
The captcha does not show up. What’s wrong?
On the plugin settings page check out if the option “Disable for known users” is activated (it is by default). Then log out (or open your page in a private browser window) and try again.
If only the comment form is affected, it is very likely that your Theme does not use the comment_form_defaults filter. (That‘s where I add the captcha HTML, to make it appear right before the submit button.) You will have to use another hook, e.g. comment_form_after_fields .
Here is some code that will fix it:
- Go to (https://gist.github.com/tareq1988/97d7f442ee3e92b7412e)
- Click the “Download Gist” button
- Unpack the .tar.gz file.
- Create a zip Archive out of the included file recaptcha-comment-form-fix.php and name it recaptcha-comment-form-fix.zip .
- Install and activate it like any other WordPress plugin
If the problem still persist, Houston really has a problem, and you are welcome to post a support request.
Disabled submit buttons should be grey! Why aren’t they?
Very likely the Author of your Theme didn’t care that a non functinal form element should look different than a functional one. This how you can overcome that issue:
- Go to (https://gist.github.com/tareq1988/7cbfb0dab73eb32cb4a2)
- Click the “Download Gist” button
- Unpack the .tar.gz file.
- Create a zip Archive out of the included file grey-out-disabled.php and name it grey-out-disabled.zip .
- Install and activate it like any other WordPress plugin
I want my visitors to solve only one Captcha and then never again. Is that possible?
Yes. You can store in a session if a captcha was solved, and use the wp_recaptcha_required filter to supress further captchas. See (https://github.com/tareq1988/wp-recaptcha-integration#real-world-example) for a code example.
I found a bug. Where should I post it?
I personally prefer GitHub but you can post it in the forum as well. The plugin code is here: GitHub
I want to use the latest files. How can I do this?
Use the GitHub Repo rather than the WordPress Plugin. Do as follows:
- 12If you haven’t already done: Install git
- 13in the console cd into Your ‘wp-content/plugins´ directory
- 14type git clone git@github.com:tareq1988/wp-recaptcha-integration.git
- 15If you want to update to the latest files (be careful, might be untested with your WP-Version) type `git pull.
Please note that the GitHub repository is more likely to contain unstable and untested code. Urgent fixes concerning stability or security (like crashes, vulnerabilities and alike) are more likely to be fixed in the official WP plugin repository first.
I found a bug and fixed it. How can I contribute?
Either post it on GitHub or—if you are working on a forked repository—send me a pull request.
Will you accept translations?
Since late 2015 WordPress.org offers a plugin translation API. Just use the “Translate this plugin” button in the right sidebar.