Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm working on an upgraded d7 site with a new theme and a dropdown jquery megamenu.... (from the arctica - lumi theme http://drupal.org/node/1913540)
Anyhow, with recaptcha enabled on any page the entire drop down menu shows as expanded (i.e. fills the page - screen shot at other post above)...
With math captcha all is well.
I'm assuming this is some sort of jquery conflict, but unfortunately that is out of my experience level...
Any help would be appreciated!
-Chad.
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2013-03-10 at 3.37.27 PM.png | 98.56 KB | hswong3i |
Comments
Comment #1
Chad_Dupuis CreditAttribution: Chad_Dupuis commentedUploaded the latest dev of recaptcha (which fixed one error I was seeing) and then installed jquery_update and all is well except for some strange conflict with ckeditor....
Pages with ckeditor and recaptcha installed get a blank ckeditor
Pages without recaptcha or with a math captcha work fine...
The error I see is:
TypeError: Drupal.settings.ckeditor is undefined
[Break On This Error]
window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path;
But without recaptcha it works fine .... also with js aggregation off it works fine (not the setting in the ckeditor module, but with caching and aggregation shut off within aegir/omega8 hosting)?
Comment #2
Chad_Dupuis CreditAttribution: Chad_Dupuis commentedThis appears to be just a ckeditor issue... although proper functioning of recaptcha on my site at least seemed to require jquery_update and the latest dev, so I'll leave this open for that reason...
Comment #3
Liam MorlandThe only substantive change between reCAPTCHA 1.9 (latest) and -dev is #1826404: ReCaptchaState undefined, skip comment approval. This changes which of Google's JS files is used. That change might be what fixes your main problem.
What remains is a possible bug report. Does anyone else find they need jQuery Update? If so, I will make that a dependency of this module. Everyone: Please let me know whether or not reCAPTCHA works for you with and without jQuery update.
Comment #4
Liam MorlandI have noted the possible need for jQuery Update on the module page. It does not seem to be required by everyone, so I will not make it a module dependency.
Comment #5
RobLoachThanks Liam!
Comment #6
tstermitzI have seen a similar issue where reCaptcha was conflicting with my javascript validation scrpits on the entityforms module. When I'm logged in as admin, my validation script worked fine, but not for anonymous users. Changing to the math Captcha made my scripts work again.
And, I haven't been using jQuery update.
Ahah. Downloading jQuery Update, and enabling it... now my scripts function.
Comment #7
hswong3i CreditAttribution: hswong3i commentedFor my case recaptcha-7.x-1.x conflict with http://drupal.org/project/prettify 7.x-1.0-beta1:
Most likely confirm that latest recaptcha REQUIRE jquery_update for complete and expected compatibility with else modules :-(
P.S. I also find that when check with Firebug (recaptcha-7.x-1.x-dev on, prettify on, jquery_update off), following error message show up:
for jquery.js?v=1.4.4 (line 27)
Screenshot:
Shall this file as another bug report, or we just simply include jquery_update into dependency so get simple fix?
Comment #8
Liam MorlandIt already says on the project page that jQuery update may be needed. I don't want to make it a hard dependency because there may be people who don't need or want to use it. I will add a note about this to the README.
Comment #9
Liam Morlandhttp://drupalcode.org/project/recaptcha.git/commitdiff/2ac2b51
Comment #10
Liam MorlandComment #14
hass CreditAttribution: hass commentedCan someone of you try 2.x branches and confirm if these also require jquery_update or make this obsolete, please?
Comment #15
hass CreditAttribution: hass commented