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.
I am getting this TypeError: $(...).once is not a function
js error when /sites/all/modules/contrib/ctools/js/dependent.js
is called when i try to use a dynamic field with display suite.
Drupal version: 7.26
My modules:
Jquery update: 7.x-2.3+15-dev
Display suite: 7.x-2.6+19-dev
I tryed this on simplytest.me and i didnt get this error but dependent.js wasnt called either.
Comment | File | Size | Author |
---|---|---|---|
#2 | once_is_not_a-2273609-2.patch | 570 bytes | medinasod |
#1 | buttons-that-trigger-error.png | 8.18 KB | medinasod |
Comments
Comment #1
medinasod CreditAttribution: medinasod commentedI'm also getting the same error from the same file when clicking the "customize this page" or "Change layout" buttons. The error comes from line number 230 in /sites/all/modules/contrib/ctools/js/dependent.js. The error was noticed after upgrading our D7 site to PHP7.
Comment #2
medinasod CreditAttribution: medinasod commentedComment #3
medinasod CreditAttribution: medinasod commentedThis patch fixes the error for me.
Comment #4
joelpittetWhat version of jQuery are you using?
Comment #5
MustangGB CreditAttribution: MustangGB commented