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.

Comments

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.

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.

public_html/dir/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js

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

Which will not work.

Ryan

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

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 :)

Version:6.x-1.x-dev» 7.x-1.0-beta4
Component:User interface» Code
Category:support» bug
StatusFileSize
new67.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??

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 ?

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

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.

StatusFileSize
new235.2 KB

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

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

Category:bug» support
Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

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

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 '{}' \;

DT

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

Here's the link to the plug in
http://www.jacklmoore.com/colorbox

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

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.

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.

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

Version:7.x-1.0-beta4» 7.x-2.0-beta3
Status:Closed (fixed)» Active
StatusFileSize
new89.28 KB
new67.77 KB
new74.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.
Thanks!

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.

Status:Active» Closed (fixed)

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.

@drupcha #22

Can you verify that you have a colorbox js file at

/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js

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

regards,

DT

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

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

Title:Not recognising pluginNot 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 1.3.21.1 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.

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
*/

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

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

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
*/

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!

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.

C.

Steps at #31 fixed my issue, thx bro !

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

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.

try to turn "Enable Colorbox load" it helped me

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.

I must confirm, answer 37 worked as a charm.