With Hierarchical Select I started getting error messages like this:

GET _http://example.com/sites/all/modules/jquery_update/replace/ui/ui/jquery.effects.core.js?v=1.10.2 404 (Not Found),
Uncaught TypeError: Cannot set property 'drop' of undefined

As we see, it expects to find jquery.effects.core.js file while it was renamed to just "ui.effect" in 1.10.2.

Comments

OnkelTem’s picture

Status: Active » Needs review
StatusFileSize
new815 bytes

This patch fixes the problem.

OnkelTem’s picture

Issue summary: View changes

Updated issue summary.

OnkelTem’s picture

Issue summary: View changes

Updated issue summary.

OnkelTem’s picture

Priority: Normal » Major

This is actually a major.

queenvictoria’s picture

As far as I can tell, all the sub effects plugins have also been renamed, around 1.9, from jquery.ui.effects-* to jquery.ui.effect-*. I've rerolled your patch with that change included as well as it solves a problem of mine (attempting to load just jquery.ui.effects-fade.min.js).

https://github.com/jquery/jquery-ui/tree/1-9-stable/ui
https://github.com/jquery/jquery-ui/tree/1-8-stable/ui

altrugon’s picture

The patch proposed by queenvictoria on comment #3 renames the file to jquery.effect.core.js instead of jquery.ui.effect.js, the following patch solves this issue as OnkelTem proposed on comment #1

OnkelTem’s picture

As far as I can tell, all the sub effects plugins have also been renamed, around 1.9, from jquery.ui.effects-* to jquery.ui.effect-*.

Good finding!
I wonder why this is being fixed only now, like nobody uses modern jQuery.

das-peter’s picture

Status: Needs review » Reviewed & tested by the community

Error just occurred after updating jquer_update. Patch looks good, error is gone.
I'd say RTBC.

axe312’s picture

Also working for me. Please add to core!

queenvictoria’s picture

I'm worrying about this. Wouldn't this now be a breaking change? Shouldn't we have rather mapped all the effects.* to ui.effect-* instead? Also there was a typ-oh in my patch. New idea attached. And a variant that supports the previous incantation as well.

// inspecting &$javascript gives
effects
effects.blind
effects.bounce
...

// our previous work in this patch moves rather than repoints them to:
effects -> ui.effect (repoint)
ui.effect-bounce (move)
ui.effect-blind (move)
// (although there was an existing typ-oh that we passed through on these two in particular)
...

//so instead shouldn't we do
effects -> ui.effect (repoint)
effects.blind -> ui.effect-blind (repoint)
effects.bounce -> ui.effect-bounce (repoint)
...
altrugon’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

This bug report was skipped, you can find it again in #2040991: jquery.effects.core.min.js is missing in the dev version

altrugon’s picture

Issue summary: View changes

Updated issue summary.

nemanja’s picture

Issue summary: View changes

Subscribing +1

agileware’s picture

Fix already committed to -dev release see #2123973-11: Failed to open: jquery.effects.*.min.js