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.
Comment | File | Size | Author |
---|---|---|---|
#19 | Screen Shot 2012-11-02 at 10.00.56 AM.png | 74.53 KB | PauloCGCosta |
#19 | Screen Shot 2012-11-02 at 10.04.02 AM.png | 67.77 KB | PauloCGCosta |
#19 | Screen Shot 2012-11-02 at 10.22.03 AM.png | 89.28 KB | PauloCGCosta |
#9 | 25-08-2011 09-51-54.jpg | 235.2 KB | MarkRennes |
#5 | Schermafdruk.png | 67.31 KB | qwinoi |
Comments
Comment #1
frjo CreditAttribution: frjo commentedDoes 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.
Comment #2
ryantboyd CreditAttribution: ryantboyd commentedI 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
Comment #3
frjo CreditAttribution: frjo commentedIf 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".
Comment #4
taffylass CreditAttribution: taffylass commentedHi, 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 :)
Comment #5
qwinoi CreditAttribution: qwinoi commentedI 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??
Comment #6
Raphael Apard CreditAttribution: Raphael Apard commentedSame 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 ?
Comment #7
frjo CreditAttribution: frjo commented@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.
Comment #8
Raphael Apard CreditAttribution: Raphael Apard commentedYes, 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.
Comment #9
MarkRennes CreditAttribution: MarkRennes commentedAs quinoi, I think. Please see the attached directory structure.
Comment #10
superturboultra CreditAttribution: superturboultra commentedThanks 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
Comment #11
frjo CreditAttribution: frjo commentedComment #13
davidwhthomas CreditAttribution: davidwhthomas commentedIn 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
Comment #14
aarsic CreditAttribution: aarsic commentedI am having the same silly issue. Where do I find Colorbox in a .zip file?
Comment #15
dolly nyc CreditAttribution: dolly nyc commentedHere'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
Comment #16
aarsic CreditAttribution: aarsic commentedSince 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.
Comment #17
loycossou CreditAttribution: loycossou commentedI 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.
Comment #18
snlnz CreditAttribution: snlnz commented#17 confirmed fix for a faulty version at github and have notified Jack Moore to advise him of the problem.
Comment #19
PauloCGCosta CreditAttribution: PauloCGCosta commentedI'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!
Comment #20
PauloCGCosta CreditAttribution: PauloCGCosta commentedI 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.
Comment #21
frjo CreditAttribution: frjo commentedComment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedThis 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.
Comment #23
davidwhthomas CreditAttribution: davidwhthomas commented@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
Comment #24
Anonymous (not verified) CreditAttribution: Anonymous commentedLine 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...
Comment #25
Anonymous (not verified) CreditAttribution: Anonymous commentedthe checkbox went back on when uploaded libraries even before enabling it which is a bit weird but thanks working now.
Comment #26
Vuds CreditAttribution: Vuds commentedThis 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:
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.
Comment #27
philsward CreditAttribution: philsward commentedCan 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.
Comment #28
krisrobinson CreditAttribution: krisrobinson commentedConfirmed #26 and #27 - this fixed my problem. Latest D7 and Libraries+Colorbox modules.
Comment #29
frjo CreditAttribution: frjo commentedPlease don't reopen old issues, there are already a new issue for this latest problem. https://drupal.org/node/1890116
Comment #30
rafael-neri CreditAttribution: rafael-neri commentedIn recents versions of the Colorbox you should remove the date in comment.
Comment #31
mr.marlin CreditAttribution: mr.marlin commentedHad 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!
Comment #32
cossimo CreditAttribution: cossimo commentedOkay, 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.
Comment #33
abelarteaga CreditAttribution: abelarteaga commentedSteps at #31 fixed my issue, thx bro !
Comment #34
davidjsn CreditAttribution: davidjsn commentedI've tried all above and still have the problem.
Comment #35
restyler CreditAttribution: restyler commentedVery 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.
Comment #36
monterek CreditAttribution: monterek commentedtry to turn "Enable Colorbox load" it helped me
Comment #37
Esteban75012 CreditAttribution: Esteban75012 commentedI 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.
Comment #38
dunechild CreditAttribution: dunechild commentedI must confirm, answer 37 worked as a charm.
Comment #39
Graham Leach CreditAttribution: Graham Leach commentedTOO MUCH HASSLE - NUKED FROM MY CONFIG
Comment #40
Nchase CreditAttribution: Nchase commentedlatest colorbox script from github doesn't work. Use git checkout to checkout older version. I went back to ef7e4af908d37e82c343d19978dd59608411c15d and it works fine.
Comment #41
tombartling CreditAttribution: tombartling commentedWhat 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.
Comment #42
Cayenne CreditAttribution: Cayenne commentedI 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!
Comment #43
jedsmith13 CreditAttribution: jedsmith13 commentedI 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:
to:
Comment #44
pinkbeef CreditAttribution: pinkbeef commentedHi,
after 4 hours of rooting around #41 worked for me.
Comment #45
ronchica CreditAttribution: ronchica commentedThank you #41 and #43. Because of you, I only spent 2 hours on this :)
Comment #46
njbarrett CreditAttribution: njbarrett commentedWe really need better redundancy protection against this. Thanks to those who posted recently.
Comment #47
katasun CreditAttribution: katasun commentedjust want to confirm #41
/*!
Colorbox v1.5.14
license: MIT
http://www.jacklmoore.com/colorbox
*/
gives a working version
Comment #48
Mugé CreditAttribution: Mugé commentedAnother 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.
Comment #49
Mugé CreditAttribution: Mugé commentedAnother 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.
Comment #50
dxx CreditAttribution: dxx commentedThanks! Simply add "v" before version number in jquery.colorbox-min.js.
Comment #51
giorgaki CreditAttribution: giorgaki commentedSame with me. Solution #41 works. Thanks tombartling
Comment #52
markchitty CreditAttribution: markchitty commented#41 FTW! tombartling you're my hero.
Comment #53
ilopata1@hotmail.com CreditAttribution: ilopata1@hotmail.com commentedA 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
Comment #54
petiar CreditAttribution: petiar commentedI 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. :-)
Comment #55
srikanth.g CreditAttribution: srikanth.g commentedhttp://localhost/drupal737/sites/all/libraries/colorbox/colorbox/jquery....
http://localhost/drupal737/sites/all/libraries/colorbox/colorbox/jquery....
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 :
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 ?
Comment #56
dunechild CreditAttribution: dunechild commentedIn my case, worked the ColorBox version 1.5.15 only.
https://github.com/jackmoore/colorbox/archive/1.5.15.zip
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!
Comment #57
fraxinus CreditAttribution: fraxinus commentedThanks 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.
Comment #58
velpan CreditAttribution: velpan commentedCheck 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, '>=')) {