Skip to content Skip to sidebar Skip to footer

Google Recaptcha - Keep Getting `incorrect-captcha-sol`

I am trying to add a reCAPTCHA to my site, but keep getting incorrect-captcha-sol error when I submit the answer. Can anyone tell me if I am correct in doing the following? I have

Solution 1:

I have solved this, it is one of the most unusual things I have come across, my syntax was previously:

<table><form><tr><td></td></tr></form></table>

I changed it to this:

<form><table><tr><td></td></tr></table></form>

Because of this switch, suddenly the recaptcha_response_field and recaptcha_challenge_field are posting values back to the form.

I cannot think why this because all MY form variables got posted back before the switch.

Thanks all for the pointers.

Solution 2:

Are You doing this from Your Localhost?

I solve this problem by adding localhost to the allowed domain for doing a verification in google reCaptcha settings

Domain reCaptcha Settings

Solution 3:

if you are posting the check twice - eg once from javascript and once via php the second one will fail as the API only allows a solution to return valid once.

Hope that helps, Josh

Solution 4:

That's because the form cannot be on the outside of the tr.....it has to be on the outisde of table.....form cannot be inserted into table, it can be inserted into the td though.

Solution 5:

In my case, the error was to set the form without specifying:

method="POST"

Cheers!

Post a Comment for "Google Recaptcha - Keep Getting `incorrect-captcha-sol`"