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

frjo’s picture

Category: bug » support
Status: Active » Closed (won't fix)

The 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)"?

bryancasler’s picture

I'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.

Michsk’s picture

frjo: i can confirm that using Colorbox settings -> Advanced switch to "Development (Uncompressed Code)"? 'fixes' this.

giorgio79’s picture

I am getting this error as well
"Uncaught SyntaxError: Unexpected token (" will try now the suggested solution.

gooddesignusa’s picture

This 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.

bryancasler’s picture

I'm on D7 now so I won't be able to help this issue along anymore.

gooddesignusa’s picture

Do 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.

loparr’s picture

Hello,
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?