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.
The following errors are encountered when using jQuery_update/jquery_ui with compression set as Packed or Minified (and not when using no compression).
A.widget is not a function
B.widget is not a function
$(".element").draggable is not a function
Has anyone else experienced this? What is likely to be causing the issue?
jQuery UI: 6.x-1.2
jQuery Update: 6.x-1.1
jQuery UI development bundle: 1.5.2 & 1.6rc2
Comments
Comment #1
sdrycroft CreditAttribution: sdrycroft commentedFurther info:
This error is present when using "dev" versions of both jquery_ui and jquery_update.
I'm currently testing this in Firefox 3.0.4
Comment #2
nath CreditAttribution: nath commentedThe ui.core.min.js is missing from the package.
Comment #3
mfer CreditAttribution: mfer commentedIt looks like you have more than just jQuery UI and jQuery Update installed. Do you have a module that is taking advantage of jQuery UI? jQuery UI doesn't add any JavaScript to a page out of the box. It's a module for other modules to take advantage of. But, your error is about something in jQuery UI code being in a page.
What is this other module or theme code? I imagine that's the culprit.
Comment #4
sdrycroft CreditAttribution: sdrycroft commentedCheers nath, I'm not sure where the problem was, but I've managed to fix it. I suspect that there was a browser cache issue, although I am guessing.
And yes, thanks mfer, I'm currently developing autotag for D6, although that wasn't the culprit.
Comment #6
tleave2000 CreditAttribution: tleave2000 commentedHello, I came across the same error message "a.widget is not a function" and google pointed to this page.
For me the solution was to turn off the Theme developer module.