recaptcha Input error: k: Format of site key was invalid

171 views
Skip to first unread message

Cathy Gordon

unread,
Oct 21, 2013, 2:44:31 PM10/21/13
to reca...@googlegroups.com
I keep getting "Input error: k: Format of site key was invalid ", even though my keys are correctly defined; 40 characters, no spaces, correct private and public keys.

The reCaptcha executes except with the above error message.
See https://stoneringbooks.com/contact/ or https://stoneringbooks.com/reviews/

I am using reCaptcha on an SSL, with the following code:

    <script type="text/javascript"
       src="https://www.google.com/recaptcha/api/challenge?k=' . RECAPTCHA_PUBLIC_KEY'">
    </script>
   
    <noscript>
       <iframe src="https://www.google.com/recaptcha/api/noscript?k='. RECAPTCHA_PUBLIC_KEY'"
           height="300" width="500" frameborder="0"></iframe><br>
       <textarea name="recaptcha_challenge_field" rows="3" cols="40">
       </textarea>
       <input type="hidden" name="recaptcha_response_field"
           value="manual_challenge">
    </noscript>

I have searched for an answer and cannot find a solution. Please help.

Cathy Gordon

unread,
Oct 22, 2013, 12:44:30 PM10/22/13
to reca...@googlegroups.com
The only solution was to remove the javascript from the header of the html file, as there is a conflict when using PHP in the html file.
Reply all
Reply to author
Forward
0 new messages