Just installed Drupal 7 on standard LAMP server. Everything else works fine. Just a few popular modules added—nothing funky. Installed Colorbox module, and Colorbox plugin under /sites/all/libraries, and enabled module. Now, when I add a new image field to a content type, if I select "Colorbox" from the list, then I just get a spinning icon that looks like the second hand on a watch, and it never stops spinning, nothing ever happens, and I can't go any further unless I go back to another part of the admin. In fact, I can't select *any* options from the Format menu for *any* fields, not just image fields. It's as if the Format menu is broken. However, if I disable the Colorbox module, then everything is back to normal and I can once again make a selection from the "Format" menu under "Manage Display." What am I doing wrong? How can I troubleshoot this? Seems to me like I did everything the way I was supposed to, and it just doesn't work. Please help!!! The selection of Drupal for our massive CMS project depends on this feature. Any help is greatly appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | missing-colorbox-after-ajax.jpg | 34.99 KB | 3rdLOF |
Comments
Comment #1
frjo commentedI put up a new Drupal 7.0 site and installed Colorbox 7.x-1.0-beta2 plus the latest version of the Colorbox plugin. With this setup I could not replicate your problem. The Colorbox formatter for image fields works as it should.
Have you cleared the Drupal cache? Deactivated other modules? Tried a new clean install?
Comment #2
lotyrin commentedI got this when I had an install that didn't have the library installed in the correct location, but it is resolved upon installing it properly.
Perhaps there should be a check here that prevents the request from failing and getting an infinite spinner, and instead warns the user to install the library.
Comment #3
MrSasquatch commentedI have the library installed, but perhaps it's not in the right location? For example, here is the location of one of the two files in the library...
/sites/all/libraries/colorbox/jquery.colorbox.js
Is that right? ...or do I need one more "colorbox" folder in there?
Thanks,
TheSasquatch
Comment #4
MrSasquatch commentedFixed! It turns out, although I had the library installed, it wasn't in the right location. Get a load of this... Turns out that, instead of...
/sites/all/libraries/colorbox/jquery.colorbox.js
...the correct location is actually...
/sites/all/libraries/colorbox/colorbox/jquery.colorbox.js
WTH?!? There is nothing in the first colorbox directory except another colorbox directory, which then includes the JavaScript files. Why the redundant directory? I never would have guessed. In fact, I don't even know what prompted me to try that. ...I think because that's they way the folders are archived. Weird. Well, I'm just glad it's working. ...and working awesomely, in fact. It's a very powerful functionality. Thanks everyone!
Comment #5
hutch commentedPerhaps you should refetch from http://colorpowered.com/colorbox/colorbox.zip
the colorbox folder should contain
colorbox/
colorbox.ai
content/
example1/
example2/
example3/
example4/
example5/
README
You will want the examples ;-)
Comment #6
MrSasquatch commentedHow are the examples useful? Just as examples? Or does Drupal use them somehow? Are they Drupal-specific examples?
Comment #7
hutch commentedThey appear under admin/config/media/colorbox as choices so you can have different colorbox styling and you can use them as a basis for your own in your theme overrides.
Comment #8
MrSasquatch commentedSounds like the thing to do. Thank you!
Comment #9
frjo commentedComment #11
3rdLOF commentedThis has returned and the location of the colorbox library is correct. If you try to move the library in anyway or add additional paths as suggested here, colorbox will not let you save it. The proper path is as described:
sites/all/libraries/colorbox
And I still have this problem:
When I click on the "gear" icon on the Manage Display when a field is selected to colorbox, after the ajax executes, everything disappears excepy the label option and its drop down menu. Attached filed
Comment #12
3rdLOF commentedComment #13
3rdLOF commentedComment #14
3rdLOF commentedAttached file shows the error
Comment #15
lsolesen commentedPlease see if this issue should fix it? #1651256: Uncaught TypeError: Object # has no method 'colorbox'