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.
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".
Comment | File | Size | Author |
---|---|---|---|
#11 | 1985788-colorbox-js-files-not-detected-ignore-case-sensitive-11.patch | 476 bytes | Rob C |
Comments
Comment #1
frjo CreditAttribution: frjo commentedThis was fixed in version 7.x-2.1, see issue #1890116: hook_libraris_info() need update refer to latest Colorbox plugins.
Comment #2
hass CreditAttribution: hass commentedAnd why is this bug in the latest version?
Comment #3
frjo CreditAttribution: frjo commentedCan you give me access to the site where you have this problem. I can not replicate it myself.
Comment #4
hass CreditAttribution: hass commentedSorry, 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
Comment #5
frjo CreditAttribution: frjo commentedCheck 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.
Comment #6
hass CreditAttribution: hass commentedI 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.
Comment #7
criscomSame 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.
Comment #8
frjo CreditAttribution: frjo commentedI need access to a site with this problem since I can't replicate it myself.
Comment #9
criscomI 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.
Comment #10
dubey4201 CreditAttribution: dubey4201 commentedThe 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.
Comment #11
Rob C CreditAttribution: Rob C commentedI 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.
Comment #12
frjo CreditAttribution: frjo commentedThe pattern was fixed in version 7.x-2.4 that was released in April.
Comment #13.0
(not verified) CreditAttribution: commenteda