Closed (outdated)
Project:
Colorbox Media Video
Version:
2.0.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Apr 2025 at 13:16 UTC
Updated:
27 Aug 2025 at 11:01 UTC
Jump to comment: Most recent
drupal.js?v=11.0.13:64 Uncaught TypeError: $.isFunction is not a function
at Object.attach (colorbox-media-video.js?svj80t:10:14)
at drupal.js?v=11.0.13:166:24
at Array.forEach (<anonymous>)
at Drupal.attachBehaviors (drupal.js?v=11.0.13:162:34)
at drupal.init.js?v=11.0.13:32:12
at HTMLDocument.listener (drupal.init.js?v=11.0.13:20:7)Note: You will need to update to the jQuery4 compatible version of the colorbox library as well.
Change:
if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
return;
}
To:
if (typeof $.colorbox !== 'function' || typeof settings.colorbox === 'undefined') {
return;
}
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
luongosb commentedComment #4
luongosb commentedComment #5
danrodIf you don't mind installing another module to fix this, I suggest this module that implements deprecated jQuery functions that are no longer in jQuery 4: https://www.drupal.org/project/jquery_deprecated_functions
Comment #6
nagy.balint commentedThis merge request is somehow incorrect, but the issue has been fixed in the Drupal 11 compatibility issue.