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.
With jQuery Update enabled, drop-downs on the configuration page don't work. There is error message in Chrome console:
Uncaught TypeError: Object [object Object] has no method 'menu'
The screenshot of the error message:
Comment | File | Size | Author |
---|---|---|---|
#27 | isn_t_compatible_with-2066223-27.patch | 1.32 KB | mparker17 |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedfixing Ingles title
Comment #2
OnkelTem CreditAttribution: OnkelTem commentedone more time
Comment #3
kalabroIt still works with 1.4, 1.5 and 1.7
Comment #4
SpleshkaI'm not sure that problem in Path Breadcrumbs. As far as I know, Drupal 7 is poorly compatible with jQuery >=1.8.
Comment #5
sylus CreditAttribution: sylus commentedThis doesn't actually work with jQuery v1.7+ also Drupal 7 is working fine with jQuery v1.8 as most contrib have caught up for instance CTools + Views + Panels all work fine in v1.7+.
We should definitely treat this as a major bug.
Comment #6
sylus CreditAttribution: sylus commentedModifying title.
Comment #7
sylus CreditAttribution: sylus commentedThis exact same issue is over here: https://drupal.org/node/1810656 for Rules.
Comment #8
kalabro@sylus, could you please help with a patch to fix this bug?
Thanks!
Comment #9
sylus CreditAttribution: sylus commentedAttaching patch that seems to resolve this for me:
a) jQuery v1.8
b) jQuery UI v1.10.2
Comment #10
kalabro@sylus, thanks a lot!
I will look at it as soon as possible!
Comment #11
sylus CreditAttribution: sylus commentedComment #12
kalabroLooks like you are using jquery_update-7.x-2.x-dev while I'm testing with stable 7.x-2.3 version.
#9 doesn't fix error
Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method 'curCSS'
in autocomplete dropdown.Aslo I confirm again that PB works with jQuery 1.7 from jquery_update-7.x-2.3.
Comment #13
sylus CreditAttribution: sylus commentedYeah I am using latest dev with jQuery Update which the patch will ensure everything is working properly.
Your right about jQuery 1.7 it didn't work for me because of jQuery UI still being 1.10.2.
Just confirming that the patch above does work for latest dev of jQuery Update so guess just need to modify it for backwards support.
Comment #14
kalabroLet's solve it finally!
Comment #15
kalabroComment #16
OnkelTem CreditAttribution: OnkelTem commentedSorry for not providing feedback since creating the issue.
This is problem with jQuery Update so we don't need to patch path_breadcrumbs or rules.
See: https://drupal.org/node/1959740
Comment #17
kalabroCommited modified @sylus' patch for dev version of jQuery Update: http://drupalcode.org/project/path_breadcrumbs.git/commit/9894019
It doesn't work for CDN unfortunately.
Comment #18
kalabroComment #19
ergophobe CreditAttribution: ergophobe commentedAs per kalabro's request in #1941378: jQuery once error when using jquery_update module...
Running Jquery Update with Jquery set for 1.7 on the front end and 1.5 on the backend, I was unable to use Path Breadcrumb. I honestly did no debugging- found the patch referenced in #13 of the thread mentioned above and the problem was fixed.
The issue I was having was on the breadcrumb edit page. When I clicked the "Add another" button, nothing happened. Applied the patch and everything worked.
Sorry I don't have more details. I was in a hurry and that looked like it might fix my problem and it did, so I let it go at that.
Comment #20
ergophobe CreditAttribution: ergophobe commentedTo save people having to go to that thread, the patch I used was in #25 of #1548028: Make the default jQuery version (1.4.4) for D7 an option: https://drupal.org/comment/7983779#comment-7983779
It solves this issue by letting you use the default Drupal Jquery 1.4.4 on admin pages and other versions on the front end.
Comment #21
knalstaaf CreditAttribution: knalstaaf commentedUpdate: jQuery Update supports a compatible jQuery version at this time of posting. Set the alternate jQuery version for administrative pages to "Use the default".
(In reply to #20)
Comment #22
kalabro@knalstaaf “Use the default” means use default jQuery Update version (1.10 for instance), not Drupal's 1.4.
I made quick review and have to summarize that problem still exists. Path Breadcrumbs works well with default core jQuery 1.4. Other versions are not supported officially. You should disable jQuery Update while configuring breadcrumbs in Path Breadcrumbs UI. Sorry for this inconvenience.
Comment #23
dillix CreditAttribution: dillix commentedIn the latest jQuery Update dev there is an option specially for admin pages: Default (provided by Drupal)
But PB works with bugs with it also: https://www.drupal.org/node/1982528#comment-9531983
Comment #24
Nikita Petrov CreditAttribution: Nikita Petrov commentedWe have good news here! The CTools and jQuery Update modues have updated their latest stable versions, it is 7.x-2.5 on 2015-Jan-25 for jQuery Update and 7.x-1.6 on 2015-Jan-28 for CTools. I tried that new versions with the current stable version of PB and it works great, even with the highest jQuery version 1.10!
Am I right that we are talking about that dropdowns?
Comment #25
kalabroThanks Nikita!
I confirm that it works well at least with Default (provided by Drupal) setting for admin pages.
It depends. Sometimes problems are in autocomplete, and sometime during PB creation steps.
Comment #26
dillix CreditAttribution: dillix commentedKate what do you think about this jQ Update bug: https://www.drupal.org/node/1982528#comment-9531983 ? Can we reopen it? It doesn't work with latest jQ update.
Comment #27
mparker17This is a straight re-roll of the patch in #9 that applies on the latest
7.x-3.x
(3ffdd79
) without conflicts. Since it's a re-roll with no changes, no interdiff is needed.Comment #28
longwave#27 works for me with jQuery Update installed and 1.7 selected for the admin pages.
Comment #29
moonray CreditAttribution: moonray at Chapter Three commentedThis does not work well because the default for jquery_update_jquery_version is set to 1.5 in this patch. However, the default in jquery_update module is set to 1.10. So unless the version is explicitly set, this will never work correctly. Additionally, shouldn't the patch check for the admin version instead, i.e. jquery_update_jquery_admin_version ?