Closed (duplicate)
Project:
reCAPTCHA
Version:
8.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 May 2018 at 12:13 UTC
Updated:
22 May 2018 at 10:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
richardgaunt commentedThank you, I had the same error and this patch has fixed it.
Comment #3
DaryaNN commentedI have the same problem. Please attach your file (/sites/all/modules/recaptcha/recaptcha.js) to the message.
Comment #4
craigshaddick commentedI seem to be getting this same issue on D7, would you mind uploading your complete recaptcha.js please so I can see if I can patch it for D7 also? I am trying to copy over the lines individually from your patch alone but it is not working for me as the JS file must have differences.
Comment #5
firestonej commentedAlso getting this issue on D7. Patching D7 seems like it will be a bit more complicated since the JS is being added inline and there's preexisting @todos to clean it up.
Comment #6
hass commentedThis file is not from this project.
Comment #7
hass commentedComment #8
veronicaseveryn commentedWhich file is not from this project?
I am having the same issue in D7.
I have jQuery v 1.11
Drupal 7.59
The file recaptcha.js exists in Recaptcha module (7.x-2.2)
I am seeing issue intermittently.. Most times, it comes, then not.. But on some page refreshes it works.
I have also tried to fix it, but no luck yet..
Here's what I am seeing when it breaks:

Comment #9
hass commentedI cannot see this JS file in https://cgit.drupalcode.org/recaptcha/tree/?h=7.x-2.x and also not in the release 7.x-2.2 or 8.x-2.x downloads.
Comment #10
veronicaseveryn commentedAh, ok, yeah, I downloaded a fresh copy of Recaptcha v 2.2 and I see it's not there.
I just checked my project's Git history and it looks like it was added to my project Recaptcha's code from this issue:
https://www.drupal.org/project/recaptcha/issues/1833822#comment-12136661
I guess, that patch worked for one thing but breaks on something else...
Anyway, if anyone still needs a solution for D7, I attached the patch that worked for me.
I guess this issue can be closed.. I linked them both.
Comment #11
hass commentedBetter you update the broken patch in #1833822: Allow multiple instances of reCAPTCHA on the same page than posting another patch.
Comment #12
hass commentedThe change looks strange as jquery
.once()runs only once... no more.Comment #13
benoit.marie commentedHi @veronicaSeveryn,
I am using Drupal 7, Recaptcha 7.x-2.2 and couldn't see the .js file to apply the patch. Could you please tell me from where I could do it? Should I create one an upload it on the main folder of the module?
Thank you in avance.
Best,