Hi

I've had the Colorbox module working with galleries and the very cool Colorbox trigger feature in views for months and months. I just updated to the latest beta and my galleries stopped working. I played around and finally got it working again by switching to the development colorbox js instead of the minified production version.
I thought I'd post in case someone else was having similar trouble.
I have the 1.3.16 version of colorbox installed in sites/all/libraries
I have the latest jquery update module.

Jake

Comments

mhawker’s picture

I second that...almost

DHTML menus stopped working on main site after I upgraded module (beta11, then 1.x.dev) and library (1.3.16). Thought maybe the dev version would fix it, but same result. Switched to development js in colorbox settings, menus working again.

On a test site (where I initially upgraded) everything worked(s) fine. Main difference that comes to mind with the errors the browser was logging is... I am using the JavaScript Aggregator module on my main site. Maybe that's conflicting?

masipila’s picture

I just tried to update from Colorbox 6.x.-1.0-beta 7 to beta11. At the same time I updated colobox library from 1.3.6. to 1.3.17.
The site is www.curlingcalendar.com

After installing the update all other javascript modules seemed to hang:
- Openlayers maps didn't show up
- Spamspan email obfuscing stopped working
- Facebook plugins didn't show up (I use Drupal for Facebook module and FB social plugins)

I didn't have time to do extensive debugging but I'm also using Javascript Aggregator (version 6.x-1.5) like mhawker in the previous post.

I'll try to debug this later during next couple of weeks and if I'm able to find the conflicting module I'll report it here.

greenskunk’s picture

Colorbox Error from a site with

  • Drupal Colorbox 6.x-1.x-dev 2011-Jun-07
  • jackmoore-colorbox-v1.3.16-10 on GitHub

Copied from FireBug:
Error: settings.colorbox is undefined Source File: /sites/all/modules/colorbox/js/colorbox_inl... Line: 22

The site has Javascript Aggregation turned off and the site appears to include the Colorbox settings

jQuery.extend(Drupal.settings, {
  "basePath": "/",
  "colorbox": {
    "transition": "elastic",
    "speed": 350,
    "opacity": "0.85",
    "slideshow": false,
    "slideshowAuto": false,
    "slideshowSpeed": 2500,
    "slideshowStart": "",
    "slideshowStop": "",
    "current": "{current} of {total}",
    "previous": "« Prev",
    "next": "Next »",
    "close": "Close",
    "overlayClose": true,
    "maxWidth": "100%",
    "maxHeight": "100%"
  }
...
}

The errors with Colorbox occur when the Enable Colorbox LOAD or Enable Colorbox INLINE are enabled.

By Disabling those two Colorbox scripts you will have the remainder of your site scripts loading again.

I haven't had time to track it down, yet. I'm lucky with this site as the site doesn't use the Colorbox LOAD or Colorbox INLINE features.

Duplicate issue see http://drupal.org/node/1162502 and possible fix http://drupal.org/node/1180522#comment-4595058

gooddesignusa’s picture

@GreenSkunk So i'm runing the latest dev version of colorbox & the latest release of colorbox js ( ColorBox v1.3.17.2 ). I updated from colobox library 1.3.6. to 1.3.17. This is when I noticed the issues. It only happens when you turn on JS minify.

I went to https://github.com/jackmoore/colorbox/commits/master?page=1 and tried replacing the js files with different version until I found when it broke.
commit d87170feabfe50183981 was the last working version.
The version after that 6387d3bf112026e12b9b was the one that cause issues with JS minify.
The changes didn't seem like they would cause any issues. ( https://github.com/jackmoore/colorbox/commit/6387d3bf112026e12b9bff6c39d... )

After doing some more research I found this thread:
http://drupal.org/node/996364#comment-4230716

I can confirm changing Colorbox plugin settings to use the 'Development (Uncompressed Code)' fixed the minify issue for performance even when running the latest 1.3.17 colorbox library. This makes me think that somehow the minified version of colorbox is what actually has the issue. Hope this helps some people find the real issue thats causing this but in the meantime this workaround seems to fix everything.

mikeejt’s picture

Version: 6.x-1.0-beta11 » 6.x-1.1

Also wanted to confirm that this still exists w/ 6.x-1.1. The work around that gooddesignusa posted is still a viable workaround. Still using version 1.3.18 of colorbox js. Hopefully this will get fixed soon.

frjo’s picture

Status: Active » Closed (works as designed)

I'm closing this issue since it is about the Colorbox plugin and not the Colorbox module.