Seems like the latest version 1.3.19 released on december 08 2011 no longer works with the colorbox module.
After doing some testing it seems to be the version of jquery that is causing it to not work.
I verified this by going to /sites/all/libraries/colorbox/example1/index.html and changing
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
to
<script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.min.js"></script>
which caused it to break.
I found that using this commit works: 7f9bbd64c39d24d2c2c3a3368cc64b86104a0483
It actually seems like the last commit is what broke it. After doing a little more research it turns out in jquery 1.4.4 http://blog.jquery.com/2010/11/11/jquery-1-4-4-release-notes/ they fixed the issue regarding height() and width() on hidden elements returning zero.
Since jquery_update 6.x-2.0-alpha1 only upgrades jquery to v1.3.2 we can not use the latest version of colorbox. We could fork colorbox and try to keep up with his updates but port anything that needs a newer version of jquery or we could ask him to try to keep some legacy stuff in his code.
In case anyone is lazy and needs to download a working colorbox
git clone https://github.com/jackmoore/colorbox.git
cd colorbox
git checkout 7f9bbd64c39d24d2c2c3a3368cc64b86104a0483
if anything we should mention something on the module page about which commit to use until we figure out what to do.
Comment | File | Size | Author |
---|---|---|---|
#1 | colorbox-1.3.18.zip | 608.82 KB | frjo |
Comments
Comment #1
frjo CreditAttribution: frjo commentedThanks for reporting this! I think the best is to simply tell Drupal 6 users to stay with version 1.3.18.
I have attached a zip file with that version.
Comment #2
ntripcevich CreditAttribution: ntripcevich commentedThank you! I had just updated an older Drupal 6 site from Thickbox to Colorbox in order to make better use of "Insert" but the Colorbox enlargements were coming up blank.
It's working now with
Colorbox 6-1.1 module
Colorbox-1.3.18 library (that you link to here)
jQuery Update 6.x-2.0-alpha1
Comment #3
Bartezz CreditAttribution: Bartezz commentedThis one costed me half an hour of my life :) Should learn to read project pages better!
Thanx for posting zip.
Cheers
Comment #4
varkenshand CreditAttribution: varkenshand commentedSame problem here: after upgrade to 1.3.19 Colorbox stopped working. After setting jQuery to 1.7 it worked again but then Drupal 6 gave problems (unable to edit node). I managed to work around it switching back and forth between 1.3 and 1.7 but downgrading the colorbox is the best option.
One thing I noticed later on is that something seems also to have changed in the Site Offline page since I have been using 1.3.18. A faulty colourbox seems to be invoked there. Strange..
Comment #5
penyaskitoCuriously I only got this problem when using D6 patch required by simpletest (and pressflow). With a clean D6 it worked fine :-S
Using 1.3.8 worked for me too in this case, thanks :)
Comment #6
doitDave CreditAttribution: doitDave commentedThanks for the guidance, I can confirm that sticking to colorbox 1.3.16 seems to be the only real option for D6. May I suggest that the maintainers add this note to the main project page?
Comment #7
Cablestein CreditAttribution: Cablestein commentedJust wanted to add...
New to Colorbox, did a fresh install today on Drupal6.
The problem I was seeing is the modal box comes up fine, but no image or controls present (just a white box with rounded corners and the overlay).
The solution on this page worked fine for me.
Comment #8
artis CreditAttribution: artis commentedThanks for providing this issue.
Comment #9
lsolesen CreditAttribution: lsolesen commentedMarking as fixed, as there is an answer.