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.
For some reason, Context UI stopped working when using Jquery Update 2.x, both versions, alpha and dev are not working. My current version of context is 3.0
Comments
Comment #1
nevets CreditAttribution: nevets commentedDo you get a javascript error? I ask because I am using Content 3.0 and jQuery update 2.x without problem.
Comment #2
lelizondo CreditAttribution: lelizondo commentedYes, using Firefox's error console I get:
Edit: Jquery UI version is 1.3.2 what's yours?
Comment #3
nevets CreditAttribution: nevets commentedThat is old code, the '@type' should be 'type', what file does the error occur in?
(I am also using jQuery 1.3.2)
Comment #4
lelizondo CreditAttribution: lelizondo commentedNo idea. It doesn't say. What do I do to know? and more important, how do I fix it?
Comment #5
nevets CreditAttribution: nevets commentedAre you using firebug (a Firefox extension)? At least with firebug the error normally shows the line and file. Also with firebug the error message is usually click-able to show you where in the file the error is. If you can provide a link to the page I can take a look.
Comment #6
lelizondo CreditAttribution: lelizondo commentedThe page is in my localhost. Firebug reports no error, Firefox Error console reports that error but it doesn't say what file is causing it.
Comment #7
nevets CreditAttribution: nevets commentedI would then search all .js files for @type. It does not appear to be a core issue so I would guess it's related to a module you have added so another approach is to disable them one at a time and see if the error goes away.
Comment #8
newtonpage CreditAttribution: newtonpage commented@lelizondo:
as others have mentioned, the '@type' syntax is legacy from jQuery 1.2 and was deprecated several years ago. This was used in certain DOM filter functions. If you have ensured that you are using jQuery 1.3.2 plus, then check the code in the Context UI js and change the syntax to current syntax. See: http://api.jquery.com/ and look for the functions that deal with selecting "attributes that contain" - for example: http://api.jquery.com/attribute-contains-selector/. I also suggest that you ping the module maintainers as this should be dealt with by them.
Comment #9
lelizondo CreditAttribution: lelizondo commentedThanks. I disabled my modules one by one and when I reached to jquery_update Context UI started working again so I guessed this module was the guilty one, but I don't know if other modules might be causing this.
Comment #10
Crom CreditAttribution: Crom commentedI can confirm this problem. Please see here: http://drupal.org/node/995918
Crom
Comment #11
nedjoThe offending code does not appear in context module's js. It is caused by a different module, likely betterselect, see #510012: Not compatible with Jquery Update -- Breaks node edit page!. See also #806352: all collapsible fields broken.
Comment #12
lelizondo CreditAttribution: lelizondo commentedBetter select is a module I do use, I'll better try.
Comment #13
lelizondo CreditAttribution: lelizondo commentedConfirmed, in my case, Better Select was breaking Context, not Jquery Update