Hi there, have installed both the module and the plugin and think I have installed everything correctly, the plugin is stored in public_html/dir/sites/all/libraries /colorbox.

However I get the message that I do not have the plugin:

Warning: file_get_contents(sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js) [function.file-get-contents]: failed to open stream: No such file or directory in colorbox_get_version() (line 300 of /home/[website]/public_html/dir/sites/all/modules/colorbox/colorbox.module).

On the status reports I get:

Colorbox plugin At least 1.3.6
You need to download the Colorbox plugin and extract the entire contents of the archive into the sites/all/libraries folder of your server.

It's driving me nuts!

Thanks in advance, T.


frjo’s picture

Does the file "public_html/dir/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js" exist in your file system?

On the project page you have a link to a screencast showing how to install the module and the plugin.

ryantboyd’s picture

I had the same problem and it is not covered in the video. You need to have a colorbox folder within the colorbox folder, as stated above.


When you download and install you will just have public_html/dir/sites/all/libraries/colorbox/jquery.colorbox-min.js

Which will not work.


frjo’s picture

If you download the plugin file, colorbox.zip, unpack it and place the whole folder in "sites/all/libraries" you automatically get "sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js".

taffylass’s picture

Hi, thanks for the tips, have tried both ways but neither seem to be working. Will have a more thorough go over the weekend, but for now, more tips appreciated.

Edited to add, have noticed that the drupal version I have listed is 6, but is really version 7-sorry!

Cheers, T :)

qwinoi’s picture

Version: 6.x-1.x-dev » 7.x-1.0-beta4
Component: User interface » Code
Category: support » bug
67.31 KB

I believe that i have the same problem.

I am getting the message "You need to download the Colorbox plugin and extract the entire contents of the archive into the sites/all/libraries/colorbox folder of your server."

and the colorbox is located at that location:
"sites/all/libraries/colorbox/colorbox" and contains the files "jquery.colorbox.js", "jquery.colorbox-min.js".

The colorbox version is "v1.3.17"

Can anyone help??

Raphael Apard’s picture

Same trouble for me.
When i try to access to _http://mywebsite.com/sites/all/libraries/colorbox/colorbox/jquery.colorb...
I've got a 403 (Forbidden) error. That a normal behavior ?

frjo’s picture

@wdki, If you get a 403 you have the wrong file permissions. If your visitors can't load the Colorbox plugin it can't work.

Raphael Apard’s picture

Status: Active » Needs review

Yes, that's a file permission. All folders of colorbox plugin come with 700 permissions. So if the drupal module don't recognize the plugin, change directories of colorbox plugin to 755.

MarkRennes’s picture

235.2 KB

As quinoi, I think. Please see the attached directory structure.

superturboultra’s picture

Thanks all, yes, changing permissions solved this for me. To do this from the command line, I used chmod -Rfv 755 /var/www/pdaday/sites/all/libraries/colorbox

frjo’s picture

Category: bug » support
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

davidwhthomas’s picture

In order to change the permission of folders only, and not all files, you can go:

sudo find sites/all/libraries/colorbox -type d -exec chmod 755 '{}' \;

and to reset correct permissions on files:

sudo find sites/all/libraries/colorbox -type f -exec chmod 644 '{}' \;


aarsic’s picture

I am having the same silly issue. Where do I find Colorbox in a .zip file?

dolly nyc’s picture

Here's the link to the plug in

Link is on the project home page too -- http://drupal.org/project/colorbox

aarsic’s picture

Since I do not have SSH access with my hosting company, this worked: I had to do was create a folder in my libraries for color box, then select all the contents in the color box folder on my Mac, compress, upload the zip file and extract and they are in there. I found that this has stumped many in the Drupal community because you have to put the color box folder of contents w/in another folder of color box (as I did) in the /sites/all/libraries.

loycossou’s picture

I know what's going on wrong.
Actually there are 2 links on the Colorbox homepage that lead to 2 different ZIP files. The one on GitHub is not good. The good one is: http://www.jacklmoore.com/colorbox/colorbox.zip straight on the Colorbox Home page.

At least, it fixed my issue.

Good luck.

snlnz’s picture

#17 confirmed fix for a faulty version at github and have notified Jack Moore to advise him of the problem.

PauloCGCosta’s picture

Version: 7.x-1.0-beta4 » 7.x-2.0-beta3
Status: Closed (fixed) » Active
89.28 KB
67.77 KB
74.53 KB

I'm still getting the error message:
"You need to download the Colorbox plugin and extract the entire contents of the archive into the folder of your server."
I tried all the workarounds suggested above, up to loycossou's correct link, all to no avail. One thing that I noticed is that the contents in the colorbox\colorbox\ folder extracted from the two 7.x-2.0 colobox.zip files that I could download and extract do not match what MarkRennes has in his posting #9 above (see http://drupal.org/files/issues/25-08-2011%2009-51-54.jpg).
The file structure (via FireFTP on 1and1) and my colorbox configuration (with the error message) are displayed below. All files under "libraries" have permission set to 755.
This is driving me nuts. Any help or suggestion is greatly appreciated.

PauloCGCosta’s picture

I figure out the issue I reported above in #19. Please, ignore it.
It all came down to having the wrong zip file (as reported by loycossou in #17 above). I did download the correct one earlier, but made a very dumb file configuration mistake and had in fact overwritten the good zip file with the faulty one. After uploading the correct colorbox.zip I got everything working.
Apologies for the inconvenience.

frjo’s picture

Status: Active » Closed (fixed)
no_longer_active_19’s picture

This needs to be re-opened.

I've had colorbox before and had no problems installing because it is super easy.

So downloaded latest colorbox.zip from the correct location and just put it in sites/all/libraries
extracted and it auto has all correct folders and files.

uploaded colorbox-7x2.0 to modules folder but no matter what I do or how many times re install it
says in admin modules- libraries missing when clearly it is not.

davidwhthomas’s picture

@drupcha #22

Can you verify that you have a colorbox js file at


and that it has on line 1, a string similar to:

// ColorBox v1.3.19

Ensure you're also running the latest stable 2.x version of the libraries module



no_longer_active_19’s picture

Line 1 of that JS file shows other version :

// ColorBox v1.3.20.2 - jQuery lightbox plugin

and on my other drupal site and following vid tutorial, just
created a libraries folder, there was no module regarding it...

no_longer_active_19’s picture

the checkbox went back on when uploaded libraries even before enabling it which is a bit weird but thanks working now.

Vuds’s picture

Title: Not recognising plugin » Not recognising Colorbox plugin - Must change version validation procedure
Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Category: support » bug
Status: Closed (fixed) » Active

This is something odd in my vision, but because Jack Moore has changed his internal "control version" inside the jquery.colorbox-min.js archive in the version to:

	ColorBox v1.3.21.1
	(c) 2013 Jack Moore - jacklmoore.com
	license: http://www.opensource.org/licenses/mit-license.php

I have lasted more than a day trying to solve why this module isn't installing right.

I had workarounded this issue inserting in the first line of the same archive:

// ColorBox v1.3.21

and now it accepted the archive. But so this module should change the way it validates the version, or doesn't make any validation at all.

philsward’s picture

Can confirm the workaround for #26

1) Make sure it's changed in jquery.colorbox-min.js
2) Make sure to pay attention to the EXACT capitalization for // ColorBox v1.3.21.1 mentioned in #26. I tried // Colorbox and it wouldn't work... talk about picky! ;-)
3) As mentioned above, the code DOES need to be in /sites/all/libraries/colorbox/colorbox
- Drush downloaded v1.3.21.1 to ../libraries/colorbox which means creating another colorbox folder and sticking everything in it.

// ColorBox v1.3.21.1

        ColorBox v1.3.21.1
        (c) 2013 Jack Moore - jacklmoore.com
        license: http://www.opensource.org/licenses/mit-license.php
krisrobinson’s picture

Confirmed #26 and #27 - this fixed my problem. Latest D7 and Libraries+Colorbox modules.

frjo’s picture

Status: Active » Closed (duplicate)

Please don't reopen old issues, there are already a new issue for this latest problem. https://drupal.org/node/1890116

rafael-neri’s picture

In recents versions of the Colorbox you should remove the date in comment.

jQuery Colorbox v1.4.10 2013-04-02
(c) 2013 Jack Moore - jacklmoore.com/colorbox
license: http://www.opensource.org/licenses/mit-license.php

mr.marlin’s picture

Had the same issues as above. Tried all of the possible fixes but none worked. Followed the link on post #29.

What did finally work was to revert the plugin path to sites/all/libraries/colorbox/... no need to have 'colorbox/colorbox/...'
AND, I removed the module: "7.x-2.3 tar.gz (163.21 KB) | zip (173.94 KB) 2013-Feb-05 Notes", and reinstalled the latest development version: "7.x-2.x-dev tar.gz (163.55 KB) | zip (174.41 KB) 2013-Apr-04 Notes"

Now it works. Thank goodness, as i was about to jump out the window!

cossimo’s picture

Okay, from my experience now (Colorbox module 7.x-2.3, Libraries 7.x-2.0+7-dev, and Colorbox plugin 1.4.10), comments #26 and #27 still apply. The comment -- // ColorBox v1.4.10 -- is still necessary at the beginning of jquery.colorbox-min.js.

HOWEVER, jquery.colorbox-min.js no longer needs to be located at sites/all/libraries/colorbox/colorbox, but rather can reside at sites/all/libraries/colorbox.


abelarteaga’s picture

Steps at #31 fixed my issue, thx bro !

davidjsn’s picture

I've tried all above and still have the problem.

restyler’s picture

Very important note - don't forget to clear site cache every time when you experiment with plugin files editing/moving!
In my case, the "plugin not found" result was cached by libraries module and I spent several hours moving colorbox js files and changing "version" pattern before I tried to flush cache.

monterek’s picture

try to turn "Enable Colorbox load" it helped me

Esteban75012’s picture

I found the solution ! In the Colorbox path of Drupal (admin/config/media/colorbox), just put this : "sites/all/libraries". Don't add "/colorbox" at the end.

dunechild’s picture

I must confirm, answer 37 worked as a charm.

Graham Leach’s picture

Issue summary: View changes


Nchase’s picture

latest colorbox script from github doesn't work. Use git checkout to checkout older version. I went back to ef7e4af908d37e82c343d19978dd59608411c15d and it works fine.

tombartling’s picture

What a mess. I finally got it to work. The directory should be /sites/all/libraries/colorbox/ (no need to have /sites/all/libraries/colorbox/colorbox/).

On the first line of jquery.colorbox-min.js add the comment:
// Colorbox v1.5.14

Not sure if the problem is that the existing comment isn't on the first line or if the version number doesn't start with a "v".

Make sure "enable colorbox load" is checked in admin->configuration->colorbox.

Clear the cache, then check the status.

Cayenne’s picture

I confirm that the change suggested in #41 makes the error message go away. Very frustrating.

Now on to the business of getting the module working for me!

jedsmith13’s picture

I have it in /sites/all/libraries/colorbox/colorbox/ and all I had to do was add the v in front of the version number so change:

	Colorbox 1.5.14
	license: MIT


	Colorbox v1.5.14
	license: MIT
pinkbeef’s picture

after 4 hours of rooting around #41 worked for me.

ronchica’s picture

Thank you #41 and #43. Because of you, I only spent 2 hours on this :)

njbarrett’s picture

We really need better redundancy protection against this. Thanks to those who posted recently.

katasun’s picture

just want to confirm #41

Colorbox v1.5.14
license: MIT

gives a working version

Mugé’s picture

Another tackle resolved! Thank you!!

Confirming with #41. Colorbox folder is one level below library and there is no second colorbox folder underneath.

I downloaded latest version v1.5.14 directly from jQuery website: http://plugins.jquery.com/colorbox/

which seemed more straight forward.

Mugé’s picture

Another tackle resolved! Thank you!!

Confirming with #41. Colorbox folder is one level below library and there is no second colorbox folder underneath.

I downloaded latest version v1.5.14 directly from jQuery website: http://plugins.jquery.com/colorbox/

which seemed more straight forward.

dxx’s picture

Thanks! Simply add "v" before version number in jquery.colorbox-min.js.

giorgaki’s picture

Same with me. Solution #41 works. Thanks tombartling

markchitty’s picture

#41 FTW! tombartling you're my hero.

ilopata1@hotmail.com’s picture

A similar problem arises if the version of Colorbox ends with a 0 as I discovered with version 1.6.0. To solve this, the pattern in popup_onload.module needs to be changed

Instead of:
'pattern' => '@Colorbox.+([0-9\.a-z]+)@

I changed it to:
'pattern' => '@Colorbox.+?([0-9\.a-z]+)@

and this resolved the problem loading the library

petiar’s picture

I had the very same problem. Plugin was on the right place, had proper permissions, everything was good. I am using the plugin in multisite installation, so it was ver weird that all sites can access the plugin but one...

And the problem here was, that (for some reason, no idea why) in Configuration -> Colorbox ->Colorbox Plugin Settings none of the compression options (production/development) was checked. After I checked any of these, Colorbox suddenly was able to find the plugin.

Maybe it will help somebody. :-)

srikanth.g’s picture


both the above files are displayed in my browser,so paths are correct.
I am using this module : https://www.drupal.org/project/ceazine
Booklet and Easing are recognized correctly by drupal, but Colorbox gives error :
jQuery Colorbox ceaZine require colorbox
You must download jQuery Colorbox. Go to download link or install colorbox with drush typing "drush colorbox-plugin"

shall i install this module (for ceaZine to work fine):https://www.drupal.org/project/colorbox ?

dunechild’s picture

In my case, worked the ColorBox version 1.5.15 only.

Of course, erased all Colorbox folder in libraries and cleared cache first.
My working path is sites/all/libraries/colorbox (no other colorbox folder inside colorbox library needed).

Thank you all!

fraxinus’s picture

Thanks to all contributors here. My attempts at updating Colorbox 7.x-1.x to 7.x-2.5 led me into hell.

#41 and #56, together, resolved a problem which I had spent about four hours addressing. So glad I found this thread.

velpan’s picture

Check http://api.drupalhelp.net/api/colorbox/colorbox.module/function/colorbox...
and http://php.net/version_compare

These are the functions that called in function colorbox_requirements inside the colorbox.install

Pattern searches for string "ColorBox v" and returns the 1st match.

Run "return colorbox_get_version();" in Execute PHP Code to see what is the version of your Colorbox library.

The bug is in line (of colorbox.install)

if (version_compare($colorbox_version, COLORBOX_MIN_PLUGIN_VERSION, '=')) {

must become

if (version_compare($colorbox_version, COLORBOX_MIN_PLUGIN_VERSION, '>=')) {