ReCaptcha Not Working in Google Chrome Version 26.0.1410.43 m

2,692 views
Skip to first unread message

DD Developer

unread,
Apr 3, 2013, 4:08:02 PM4/3/13
to reca...@googlegroups.com
Hello,

I have a form that worked previously but noticed now it's not working.

When I test in my google chrome Version 26.0.1410.43 m it's not working. the form submits, but stays on the page..no error or message and i made sure i entered the code correctly.  However, take that SAME page and view it on internet explorer or firefox and it works successfully. So power of deduction leaves me to think the most recent update to google chrome is the culprit.  Also, I've confirmed its the recaptcha part because i've removed it and my send mail and form code WORKS in google chrome. When i add recaptcha back, it no longer does.


Here is the recaptcha code i'm using so you can see this is a direct cut and paste from recaptcha itself!


<%
  recaptcha_challenge_field  = Request("recaptcha_challenge_field")
  recaptcha_response_field   = Request("recaptcha_response_field")
  recaptcha_public_key       = "xxxx"
  recaptcha_private_key      = "xxxx"

  ' returns the HTML for the widget
  function recaptcha_challenge_writer()

  recaptcha_challenge_writer = _
  "<script type=""text/javascript"">" & _
  "var RecaptchaOptions = {" & _
  "   theme : 'red'," & _
  "   tabindex : 0" & _
  "};" & _
  "</script>" & _
  "<script type=""text/javascript"" src=""http://www.google.com/recaptcha/api/challenge?k=" & recaptcha_public_key & """></script>" & _
  "<noscript>" & _
    "<iframe src=""http://www.google.com/recaptcha/api/noscript?k=" & recaptcha_public_key & """ frameborder=""1""></iframe><>" & _
      "<textarea name=""recaptcha_challenge_field"" rows=""3"" cols=""40""></textarea>" & _
      "<input type=""hidden"" name=""recaptcha_response_field""value=""manual_challenge"">" & _
  "</noscript>"

  end function

  ' returns "" if correct, otherwise it returns the error response
  function recaptcha_confirm(rechallenge,reresponse)

  Dim VarString
  VarString = _
          "privatekey=" & recaptcha_private_key & _
          "&remoteip=" & Request.ServerVariables("REMOTE_ADDR") & _
          "&challenge=" & rechallenge & _
          "&response=" & reresponse

  Dim objXmlHttp
  Set objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
  objXmlHttp.open "POST", "http://www.google.com/recaptcha/api/verify", False
  objXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  objXmlHttp.send VarString

  Dim ResponseString
  ResponseString = split(objXmlHttp.responseText, vblf)
  Set objXmlHttp = Nothing

  if ResponseString(0) = "true" then
    'They answered correctly
     recaptcha_confirm = ""
     Call SendEmail() 
   Response.Redirect("ts_askaquestion_valid.asp") 
  else
    'They answered incorrectly
     recaptcha_confirm = ResponseString(1)
  end if

  end function

  server_response = ""
  newCaptcha = True
  if (recaptcha_challenge_field <> "" or recaptcha_response_field <> "") then
    server_response = recaptcha_confirm(recaptcha_challenge_field, recaptcha_response_field)
    newCaptcha = False
  end if

  %>



any thoughts are greatly appreciated.


DD Developer

unread,
Apr 12, 2013, 4:31:28 PM4/12/13
to reca...@googlegroups.com
Bump. Any thoughts is greatly appreciated.

This form works in IE as is
This form doesnt' work in Chrome

Take out the recaptcha code, the 'form' works in chrome so it isn't my submit form or send emal code that is doing it.

And the recaptcha code has been cut and pasted from forms tha twork and even the site that obviously work with still no luck.

Any thoughts ?

DD Developer

Dom Sekotill

unread,
Apr 13, 2013, 7:33:44 AM4/13/13
to reca...@googlegroups.com
Run your page through the validator at http://validator.w3.org/
This type of problem is almost always due to HTML elements being where they are not strictly allowed, normally form elements inside table elements.
--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+...@googlegroups.com.
To post to this group, send email to reca...@googlegroups.com.
Visit this group at http://groups.google.com/group/recaptcha?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Peter Missick

unread,
Apr 14, 2013, 2:56:46 PM4/14/13
to reca...@googlegroups.com
did you try IE

DD Developer

unread,
Apr 25, 2013, 8:53:10 AM4/25/13
to reca...@googlegroups.com
Thank you Dom and Peter.

Yes the site form with captcha code worked in all other browsers except google Chrome.  Thought i'd post the solution in case it helps others.

Turns out, In my research on another forum post, that the cause was the <form> tags were inside of the <table> tag structure that was used to format this particular form.  It was like this:

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

Once I put those form tags above and below that table, the form then worked successfully.
Google chrome sure is a stickler isn't it? :)

It works now. Thank you for your assistance!

Emily Clemenson

unread,
Mar 26, 2014, 6:03:39 PM3/26/14
to reca...@googlegroups.com
I know this topic is old, but I stumbled across it when I discovered the same issue today on my website. Nothing listed on this thread helped me, but my problem was resolved with this solution: https://groups.google.com/forum/?fromgroups=#!topic/recaptcha/ZwaZMwTjfFE. I wanted to post it in case anyone comes across this in the future and could use this advice. 

Pradeep Raj

unread,
Apr 26, 2015, 1:17:10 PM4/26/15
to reca...@googlegroups.com, slucarem...@slu.edu
Hi,

This is not working for me in Chrome (version is 42.0.2311.90 m) and I used the HTML example given in your documentation;

After I click the checkbox I am not a robot, it processes and marks as verified.  Captcha image is not loaded as in other browsers.

Could you please check?
<html>
 
<head>
   
<title>reCAPTCHA demo: Simple page</title>
     
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
 
</head>
 
<body>
   
<form action="?" method="POST">
     
<div class="g-recaptcha" data-sitekey="your_site_key"></div>
     
<br/>
     
<input type="submit" value="Submit">
   
</form>
 
</body>
</html>

Pradeep Raj

unread,
Jun 1, 2015, 12:23:16 PM6/1/15
to reca...@googlegroups.com, slucarem...@slu.edu
Counting on you, any ideas?
Reply all
Reply to author
Forward
0 new messages