Latest colorbox 1.4.15 installs the js files in the root folder "sites\all\libraries\colorbox", but the module expects the files in "sites\all\libraries\colorbox\colorbox".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

Status: Active » Closed (duplicate)
hass’s picture

Status: Closed (duplicate) » Active

And why is this bug in the latest version?

frjo’s picture

Can you give me access to the site where you have this problem. I can not replicate it myself.

hass’s picture

Version: 7.x-2.4 » 7.x-1.6

Sorry, wrong version. Now it's correct.

Please note that I have extracted the colobox.zip and this means the JS files are located at sites\all\libraries\colorbox\jquery.colorbox-min.js

frjo’s picture

Category: bug » support
Priority: Major » Normal

Check the Library path setting at the top of the Colorbox settings page.

If it has the wrong value just clear it and save and the default value should be set.

hass’s picture

Category: support » bug

I have upgraded the module and the lib. The setting looked still correct after the upgrade. That is not my fault nor do I need to expect that the module no longer works after an upgrade. I'm no longer using 1.x.

criscom’s picture

Same problem here with Colorbox 7.x-1.5
Colorbox cannot detect the library: https://www.evernote.com/shard/s272/sh/4f8ff8b1-d19b-4e64-8fa6-1420da643...

I have the colorbox plugin in sites/all/libraries/colorbox
https://www.evernote.com/shard/s272/sh/11537eec-7f71-4f89-a36a-dde969a46...

Upgrading to Colorbox 7.x-1.6 is not possible because the update process throws an error: Unresolved dependencies

The funny thing is that colorbox does work - images open in colorbox on click - although the styles seem to be broken.

frjo’s picture

Status: Active » Postponed (maintainer needs more info)

I need access to a site with this problem since I can't replicate it myself.

criscom’s picture

I already removed colorbox functionality completely from this site. it is a big site with a lot of traffic and I had to make sure that the images will be displayed even if we had to do without colorbox. The next step will be to install colorbox version 7.x-2.x. I think this will work better than version 1.x.

dubey4201’s picture

The jquery.colorbox-min.js downloaded from jacklmoore.com/colorbox has some pattern matching issue.
Hence just change the line (Pattern) from "jQuery Colorbox v1.4.18 - 2013-05-30" to "ColorBox v1.4.18- 2013-05-30" in the file jquery.colorbox-min.js and everything would work fine.

Rob C’s picture

Version: 7.x-1.6 » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Needs review
FileSize
476 bytes

I can confirm #10
In previous versions, "jQuery ColorBox v1.3.27" was the string to match, but now 'jQuery Colorbox v1.4.19 - 2013-06-03' is the string. (mind the lowercase 'b')
So the pattern below won't work anymore. (line 83 colorbox.module)
'pattern' => '@ColorBox v([0-9\.a-z]+)@',
Update it to:
'pattern' => '@ColorBox v([0-9\.a-z]+)@i',
Should make it work again.

frjo’s picture

Status: Needs review » Fixed

The pattern was fixed in version 7.x-2.4 that was released in April.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

a