reCAPTCHA Checkbox is not working once verification expired.

3,330 views
Skip to first unread message

Pradeep Palakurthi

unread,
Sep 22, 2015, 2:06:51 PM9/22/15
to reCAPTCHA
Hi,

I have two reCAPTCHA on a page and when I get "Verification expired. Check the checkbox" error reCAPTCHA checkbox is not working and getting an JS error.




root

unread,
Sep 23, 2015, 10:07:32 AM9/23/15
to reCAPTCHA
Have you managed to find a solution about this? I'm getting the same problem.

root

unread,
Sep 23, 2015, 1:44:29 PM9/23/15
to reCAPTCHA
Here is an actual screen grab of the error.  https://youtu.be/BYgWNp5jL2w


On Wednesday, September 23, 2015 at 2:06:51 AM UTC+8, Pradeep Palakurthi wrote:

Toby Hullinger

unread,
Sep 23, 2015, 6:02:30 PM9/23/15
to reCAPTCHA
Posting in this in case a solution is found. Just started getting the same error today.

root

unread,
Sep 23, 2015, 9:37:30 PM9/23/15
to reCAPTCHA
I found a hack on the form.  Since the expiration is around ~2 min 15 sec I triggered the reset function every 2 minutes.
So the code is : 

captchaContainer = grecaptcha.render('captcha_container', {
sitekey : sitekey,
callback : function(response) {
console.log(response)
setTimeout(function(){
"use strict";
grecaptcha.reset(captchaContainer);

},120000);
}
})
;


On Wednesday, September 23, 2015 at 2:06:51 AM UTC+8, Pradeep Palakurthi wrote:

Pradeep Palakurthi

unread,
Sep 24, 2015, 8:45:07 PM9/24/15
to reCAPTCHA

I have used expired-callback to reset the reCAPTCHA instead of callback which will be triggered automatically on captcha expire.

Allan Joseph Cagadas

unread,
Sep 24, 2015, 8:47:38 PM9/24/15
to reca...@googlegroups.com
Can u show some code? And does it work well?

Regards,
Allan
--
You received this message because you are subscribed to a topic in the Google Groups "reCAPTCHA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/recaptcha/eG6tXb7vqYQ/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

root

unread,
Sep 24, 2015, 10:17:09 PM9/24/15
to reCAPTCHA
I tested using the code below but the reset doesn't really trigger


<div class="" id="captcha_container" data-expired-callback="resetCallback"></div>


<script>
var captchaContainer = grecaptcha.render('captcha_container', {
    sitekey  
: 'sitekey'
});
var resetCallback = function() {
    grecaptcha
.reset(captchaContainer);
}
</script>
<script src="https://www.google.com/recaptcha/api.js?onload=captchaContainer&render=explicit" async defer></script>

To unsubscribe from this group and all its topics, send an email to recaptcha+unsubscribe@googlegroups.com.

Pradeep Palakurthi

unread,
Sep 25, 2015, 11:53:39 AM9/25/15
to reCAPTCHA

Try like this

<div class="" id="captcha_container"></div>

<script>
var captchaContainer =grecaptcha.render('captcha_container', {
    sitekey  : 'sitekey',
    'expired-callback': resetCallback


});
var resetCallback = function() {
    grecaptcha.reset(captchaContainer);
}
</script>
<script src="https://www.google.com/recaptcha/api.js?onload=captchaContainer&render=explicit" async defer></script>

To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "reCAPTCHA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/recaptcha/eG6tXb7vqYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to recaptcha+...@googlegroups.com.

Allan Joseph Cagadas

unread,
Sep 25, 2015, 11:55:29 AM9/25/15
to reca...@googlegroups.com
Ok cool. I thought you are using the data-expire-callback="resetCallback" attr. Thanks!

NobsWare

unread,
Sep 28, 2015, 7:14:49 AM9/28/15
to reCAPTCHA
I get the same problem. When I have a look with FireBug it seems like there is a method called "then" which is called from a Null-Object.

Please fix this soon.

NobsWare

unread,
Sep 28, 2015, 7:48:12 AM9/28/15
to reCAPTCHA
Reply all
Reply to author
Forward
0 new messages