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.

CommentFileSizeAuthor
#14 missing-colorbox-after-ajax.jpg34.99 KB3rdLOF

Comments

frjo’s picture

Category: bug » support
Priority: Critical » Normal

I 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?

lotyrin’s picture

Category: support » feature

I 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.

MrSasquatch’s picture

I 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

MrSasquatch’s picture

Fixed! 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!

hutch’s picture

Perhaps 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 ;-)

MrSasquatch’s picture

How are the examples useful? Just as examples? Or does Drupal use them somehow? Are they Drupal-specific examples?

hutch’s picture

They 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.

MrSasquatch’s picture

Sounds like the thing to do. Thank you!

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

3rdLOF’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta2
Component: Code » Miscellaneous
Status: Active » Closed (fixed)

This 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

3rdLOF’s picture

Status: Closed (fixed) » Active
3rdLOF’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Component: Miscellaneous » Code
3rdLOF’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Component: Miscellaneous » Code
Status: Closed (fixed) » Active
StatusFileSize
new34.99 KB

Attached file shows the error

lsolesen’s picture

Category: feature » bug
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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