I recently installed recaptcha and have installed the required library and setup a key. When I have a page which includes recaptcha, the page perpetually loads showing "transferring data from api.recaptcha.net" at the bottom of the browser window. With math captcha, it displays fine. I have the captcha attached to [node_type]_node_form and contact_mail_page, both do not work with recaptcha.

Comments

AlexisWilke’s picture

Hi Ron,

Are you using version 2.x of CAPTCHA? I run in the same problem with 2.x, when reCAPTCHA was working just fine with version 1.x which is now discontinued...

Thank you.
Alexis

Quick update: I tested with reCAPTCHA 1.x-dev and I get the same problem.

AlexisWilke’s picture

I noticed this error in my error log from FireFox:

Security Error: Content at https://api-secure.recaptcha.net/js/recaptcha.js may not load data from http://dscam.m2osw.com/node/add/submit.

May be that could help?

AlexisWilke’s picture

I have another update to make on this one:

It only breaks when I'm the Admin. For my users it works perfectly!

Looking at the entry closer, the difference is that the new CAPTCHA now shows "an already resolved" reCAPTCHA... I'm not too sure why it would be any different, but that's the special case (captcha/captcha.module, search for captcha_admin_mode).

Thank you.
Alexis Wilke

ron williams’s picture

Hi alex, thanks for the quick reply.

I am using reCAPTCHA 6.x-1.2 and CAPTCHA 6.x-2.0-rc3. Does your last reply mean it's a CAPTCHA issue?

AlexisWilke’s picture

Ron,

I'm not too sure which one is the problem.

The Examples in the settings window work perfectly. So I don't see why the one in another page would fail!

It looks like there would be an invalid path generated and because of that a Javascript is not loaded and executed properly messing up the whole thing.

So it may still be in reCAPTCHA. I did not yet resolve the problem per se, just that I can use the module for my users, not for the Admin (user 1).

Thank you.
Alexis

giorgio79’s picture

+1 I am getting the same issue with the latest. I cannot view nodes with recaptcha enabled as after loading it for a while it jumps to api.recaptcha...
Going back to the previous version of recaptcha did not help.

I had to go back with Captcha as well to 6.1.x which made it go away.

ecarter’s picture

+1
Confirmed here - after the updating to Captcha 6.x-2.0-rc3, this error occurred for me as well. Had to revert to Captcha 6.x-1.0-rc2.

CarbonPig’s picture

same issue

Elryn’s picture

I'm having the exact same problem, and narrowed it down to the Admin as well. All I did was upgrade to the latest Captcha.

Should we post this issue on the Captcha board?

robloach’s picture

Could you please try 1.x-dev? I'd like to make a release if someone confirms that their issue is fixed with that. Thanks.

chrism2671’s picture

Same problem- will try dev branch.

AlexisWilke’s picture

Rob,

I tested with 1.x-dev and it looks like it is up to date so that's not working with the latest.

Thank you.
Alexis

slip’s picture

Tested with 6.x--1.x-dev from cvs. The bug is still there.

My temporary fix was to uncheck the 'Add CAPTCHA administration links to forms' option.

Seems to be an issue for admin when Recaptcha is selected for a form and the option above is selected.

ccoppen’s picture

My error in FireBug is that "Recaptcha is not defined"

I have "Add CAPTCHA administration links to forms" enabled.

When I disable it, the Recaptcha doesn't appear at all.

I'm using CAPTCHA 6.x-2.0-rc3 and reCAPTCHA 6.x-1.2

ccoppen’s picture

After some tests, I have determined that the error seems to be related to the "Add CAPTCHA administration links to forms" being enabled.

The reCAPTCHA successfully shows up when not logged in and that is enabled. As soon as you log in, the page goes into the perpetual load.

The problem does not happen if you're using any of the other CAPTCHA methods and have the above checkbox enabled.

The reCAPTCHA will now show up, obviously, if you're an authenticated user.

I hope this helps toward solving the problem.

It appears there may be something happening in adding the fieldset containing the administration links which is causing the javascript for the reCaptcha API to break, causing the perpetual load.

nomonstersinme’s picture

#15 - This was the problem for me.. I unchecked both, Add CAPTCHA administration links to forms and Allow CAPTCHAs and CAPTCHA administration links on administrative pages and now it works just fine!

Thanks!

silverhook’s picture

I can confirm all of the above on my install.

robloach’s picture

Disable the add to administrative pages. Another thing you could do is update to captcha 6.x-2.x-dev and recaptcha 6.x-1.x-dev.

jkingsnorth’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Really old issue on old versions. If anyone encounters this on the latest releases then please do reopen the issue, with full steps about how to recreate it =]