I have a custom content type with a multimedia asset field, using the Media Views file selector widget. When I click on the Select Media button, it chugs away for a few seconds, then nothing happens. With firebug, I can see this error:

cache[id] is undefined
https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js
Line 1393

I then set jQueryUI to use the local jquery.js library, and set a breakpoint on line 1393. The cache has the name "form.node-form", but is not instantiated (no child variables).

I searched for similar problems with undefined cache, but could find no solutions. Any help in troubleshooting would be appreciated.

(Yes, I know multimedia asset is deprecated, but this is legacy code we must support until we can migrate to 2.x).

Comments

Dave Reid’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

This error has nothing to do with Media or the multimedia asset field. This is a bug because I think you're using a newer version of jQuery than is supported by Drupal core. The "cache[id] is undefined" error comes from jquery.once.js which is provided by core, not by Media module.

steinmb’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

No activity, closing. Pls. reopen issue if this still is an issue. There is already multiple issues regarding jquery_update and versions of jquery.