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:
Path Breadcrumb doesn't work

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

Title: Doesn't compatible with any moderns jQuery (>1.5) » Isn't compatible with any moderns jQuery (>1.5)

fixing Ingles title

OnkelTem’s picture

Title: Isn't compatible with any moderns jQuery (>1.5) » Isn't compatible with any modern jQuery (>1.5)

one more time

kalabro’s picture

Title: Isn't compatible with any modern jQuery (>1.5) » Isn't compatible with jQuery 1.8.2
Priority: Major » Normal

It still works with 1.4, 1.5 and 1.7

Spleshka’s picture

I'm not sure that problem in Path Breadcrumbs. As far as I know, Drupal 7 is poorly compatible with jQuery >=1.8.

sylus’s picture

Priority: Normal » Major

This 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.

sylus’s picture

Title: Isn't compatible with jQuery 1.8.2 » Isn't compatible with jQuery 1.7+

Modifying title.

sylus’s picture

This exact same issue is over here: https://drupal.org/node/1810656 for Rules.

kalabro’s picture

@sylus, could you please help with a patch to fix this bug?

Thanks!

sylus’s picture

Attaching patch that seems to resolve this for me:

a) jQuery v1.8
b) jQuery UI v1.10.2

kalabro’s picture

@sylus, thanks a lot!
I will look at it as soon as possible!

sylus’s picture

Status: Active » Needs review
kalabro’s picture

Priority: Major » Normal
Status: Needs review » Active

Looks 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.

sylus’s picture

Yeah 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.

kalabro’s picture

Status: Active » Needs work

Let's solve it finally!

kalabro’s picture

Priority: Normal » Major
OnkelTem’s picture

Sorry 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

kalabro’s picture

Commited 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.

kalabro’s picture

Title: Isn't compatible with jQuery 1.7+ » Isn't compatible with jQuery Update
Issue summary: View changes
ergophobe’s picture

As 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.

ergophobe’s picture

To 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.

knalstaaf’s picture

Update: 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)

kalabro’s picture

@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.

dillix’s picture

In 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

Nikita Petrov’s picture

Issue summary: View changes
Status: Needs work » Active
FileSize
47.68 KB

We 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?

kalabro’s picture

Thanks Nikita!
I confirm that it works well at least with Default (provided by Drupal) setting for admin pages.

Am I right that we are talking about that dropdowns?

It depends. Sometimes problems are in autocomplete, and sometime during PB creation steps.

dillix’s picture

Kate 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.

mparker17’s picture

FileSize
1.32 KB

This 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.

longwave’s picture

Status: Active » Reviewed & tested by the community

#27 works for me with jQuery Update installed and 1.7 selected for the admin pages.

moonray’s picture

Status: Reviewed & tested by the community » Needs work

This 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 ?