- Issue created by @dchaffin
- Status changed to Postponed: needs info
about 1 year ago 7:27pm 8 March 2024 - 🇺🇸United States paulmckibben Atlanta, GA
There's nothing obviously wrong based on your problem description.
I'm not sure why you're trying to invoke the colorbox method as part of attachBehaviors(). Would you want to do that in an event handler instead? - 🇮🇳India mahtab_alam
https://github.com/jackmoore/colorbox
Download this library and upload to web/libraries folder
Make sure the folder name should be colorbox This looks like an error with deprecated jquery functions in v3 and removed in v4. I have just updated some of my sites to drupal 11, and because jquery gets updated to v4, both colorbox and slick carousel are broken. The key is to update the js libraries to be JQuery compatible.
Please read the slick project page for more info about this: Slick project page →
If you want to use colorbox on upgraded jquery please look at
This are the modifications needed for making colorbox compatible with newer jquery versions:
https://github.com/jackmoore/colorbox/pull/908/files
Maybe a warning on the project page should be in order, just like on the slick project, to clarify that even the module is Drupal 11 compatible, actually it won't work unless you use a jquery compatible colorbox library.
For easy testing I attached the modified files to replace in the drupal's library folder.