Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught TypeError in Google reCAPTCHA

I'm loading reCAPTCHA via JavaScript http://www.google.com/recaptcha/api/js/recaptcha_ajax.js and am using jquery-1.5.2.min.js to communicate with a local PHP script which then validates the input via Google's recaptchalib.php and returns data to the JavaScript in JSON format. It all works, but Google Chrome's Console reports an error:

Uncaught TypeError: Cannot set property 'innerHTML' of null  recaptcha_ajax.js:15
Recaptcha._init_builtin_theme                                recaptcha_ajax.js:15
Recaptcha._finish_widget                                     recaptcha_ajax.js:19
Recaptcha.challenge_callback                                 recaptcha_ajax.js:13
(anonymous function)                                                 challenge:12

I would like to resolve that error but I don't know how to go about it.

like image 701
none Avatar asked May 01 '11 11:05

none


People also ask

How do I get rid of reCAPTCHA error?

Help for reCAPTCHA usersMake sure your browser is fully updated (see minimum browser requirements) Check that JavaScript is enabled in your browser. Try disabling plugins that might conflict with reCAPTCHA.

What is reCAPTCHA validation error?

reCAPTCHA analyzes interactions with the website to detect if they are made by a human or some form of automated abuse. Sometimes, you may see a "failed reCAPTCHA check" error message while trying to create or amend your account. This means the website believes your actions may be those of a bot.

What does this mean your reCAPTCHA was not valid please try again?

One of the most common reasons why this error occurs is that of an outdated Chrome version. reCAPTCHA will actively look at the browser version before allowing you access. This is applicable to all browser versions, not just Chrome. In this case, the solution is to update Google Chrome to the latest version.


1 Answers

Perhaps you're passing it a nonexistent element to instantiate itself in. Are you sure you didn't misspell an id or something like that?

like image 85
Matti Virkkunen Avatar answered Sep 23 '22 13:09

Matti Virkkunen