Closed (fixed)
Project:
Colorbox
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jun 2011 at 14:46 UTC
Updated:
25 Oct 2011 at 21:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
frjo commentedDid you activate the Colorbox module first?
Comment #2
wizonesolutionsI did, and I am still getting the error. Have a look:
...
Comment #3
wizonesolutionsThis happened on 6.x-1.0 for me, but I'm guessing the Drush code is the same.
Comment #4
frjo commentedWhat version of Drush?
I'm using 4.4 and just tested "drush colorbox-plugin" and it ran without a problem on both D6 and D7.
Comment #5
finex commentedI confirm the error using drush 4.4 with colorbox 7.x-1.0 and 7.x-1.x-dev
Comment #6
frjo commentedPlease run it in debug mode and paste in the messages here.
Comment #7
finex commentedHi, this is the result:
P.S: If the colorbox plugin is already available in /sites/all/libraries, the command replace the existing plugin.
Comment #8
frjo commentedYou are absolutely right, bad testing by me. I had a previous version and only tested re-downloading the library.
When I remove the library first I get the same result as you do. This is a bad bug!
I have committed the two attached patches already to 6-dev and 7-dev (it takes some hours for dev tarballs to rebuild). They are quickfixes to get the drush command working again. Please try them out and report back here how it works for you.
The bug was that the Colorbox module displays a message when it loads if the plugin is missing. This broke the Drush command. The patches removes the message but best would be to disable it when PHP runs form the cli/drush. Will investigate that.
Comment #9
finex commentedIndeed, commenting out that else { ... } makes drush work. Anyway it looks that drush check to initialize ( _init() ) the module before calling the function, but _init() calls colorbox_get_js() which returns FALSE.
Comment #10
frjo commentedComment #12
kallekwd commentedMaybe this is drush issue, but cannot get this to work with D6.22 and drush 7.x-4.5.
Comment #13
hutch commentedNot sure if this is relevant, but I recently found that I had to put the drush directory in my $PATH, not just a symlink to the exec.
Once I did that it found the colorbox plugin straightaway.
Comment #14
tatewaky commentedwhat do you mean in my $PATH, the drupal path directory?
Comment #15
hutch commentedBy $PATH I mean your shell environment. Where that is defined depends on your shell setup but this might typically be .bashrc in your home directory.
To find out what that is (I'm assuming *nix here) type
On the command line.
Let's assume you have drush in your home at /home/myname/drush
You could add the following line to your .bashrc
Logout and Login again and run
echo $PATHagain and it should be prepended to the path and typing 'drush' should work anywhere.