Hi @onpointedigitalservices,
I’ve changed my original message as I was able to track down the precise error message in the plugin code. Apologies for the confusion.
If they’re definitely Google reCAPTCHA v3 keys (rather than v2), you’ll just need to check the “Enable…” box in Wordfence and paste the Site Key and Secret that you’re given from Google’s admin console. If you’re using the Google Cloud interface, those keys present slightly differently but you can still get the same required values. Also ensure the keys refer to the domain where Wordfence will be trying to use them, although that shouldn’t cause them to be immediately rejected at our end.
Your WordPress default login/registration page may show red errors similar to, “Invalid site key or not loaded in api.js” in your login page’s browser console if something is still wrong after saving. The error will usually point you in the direction of the cause but let me know here if the solution still isn’t clear.
Many thanks,
Peter.
-
This reply was modified 2 weeks, 1 day ago by
wfpeter. Reason: Changed my response
My apologies for the delay, I didn’t get notified. The site is vtbonds.com that we are getting the error message with. It’s still happening. We do have the key and secret key correct. I can set up a clone environment if needed. I did try it there and had the same issue.
Hi @onpointedigitalservices, no worries at all.
We have seen this before but the key validation check error doesn’t always occur, even if the keys are incorrect sometimes. If Google is returning a response other than HTTP 200, it could mean an invalid key, blocked/filtered outbound requests to Google, or an unexpected response from Google.
If you or your host can run curl https://www.google.com/recaptcha/api/siteverify from the command line on your server, it should return:
{
"success": false,
"error-codes": [ "missing-input-secret" ]
}
If you don’t get that, it might point to the server being unable to make outbound requests to Google, or another similar connectivity issue.
Thanks again,
Peter.