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.
It seems that my recent problems with colorbox is due to using the javascript aggregator module.
REF: http://drupal.org/project/javascript_aggregator
I can't pinpoint exactly what's causing the conflict. Any feedback is greatly appreciated.
Comments
Comment #1
frjo CreditAttribution: frjo commentedThe javascript aggregator module uses JSMin to minify the JS. My guess is that some part of the Colorbox modules JS does not work well with JSMin.
Can you check with Firebug for any errors?
Does it work if you in Colorbox settings -> Advanced switch to "Development (Uncompressed Code)"?
Comment #2
bryancasler CreditAttribution: bryancasler commentedI'm not very good with Firebug, I'm on chrome. Chrome shows...
"Uncaught SyntaxError: Unexpected token new"
"Uncaught ReferenceError: Drupal is not defined"
"Uncaught TypeError: Object # has no method 'equalHeights'"
I can't tell if it's related, but after switching colorbox to "Uncompressed Code" the errors go away and everything works as expected. Thanks for the simple solution.
If you can give me step by step instructions I can test in firebug for you.
Comment #3
Michsk CreditAttribution: Michsk commentedfrjo: i can confirm that using Colorbox settings -> Advanced switch to "Development (Uncompressed Code)"? 'fixes' this.
Comment #4
giorgio79 CreditAttribution: giorgio79 commentedI am getting this error as well
"Uncaught SyntaxError: Unexpected token (" will try now the suggested solution.
Comment #5
gooddesignusa CreditAttribution: gooddesignusa commentedThis seems like a dup issue since this happens without using that module. Normal js minify under performance has the same issues. check http://drupal.org/node/1129890#comment-4617362 for more information.
Comment #6
bryancasler CreditAttribution: bryancasler commentedI'm on D7 now so I won't be able to help this issue along anymore.
Comment #7
gooddesignusa CreditAttribution: gooddesignusa commentedDo you get this issue in D7 when you turn on minify for js? If not than it might be a bug with how d6 compresses all the js files into 1. I havent had a chance to use d7 yet so idk how much it differs when it comes to that.
Comment #8
loparr CreditAttribution: loparr commentedHello,
Using this workaround
advanced switch to "Development (Uncompressed Code)
everything works ok in firefox and chrome. In IE7 is colorbox not working. Can be done something here?