Hello there!
I'm trying to use drush on my small production site, so I'm ssh-ing into the server and trying to set up drush there, but I can't get any of the pm commands specifically to work.
Most of the other commands seem to work fine. Updatedb works, status modules works, even sql dump works.
However if, for example, I try to use `drush uninstall weather` it fails with this error message:
weather is not disabled. If active, use `disable` command before [error]
`uninstall`.
An error occurred at function : drush_pm_uninstall [error]
where, in this example case, the weather module was indeed disabled despite the error message reporting otherwise.
I have the drush Module Manager module installed into my drupal installation so I get all the 'mm' commands too (although it looks like you have rolled a number of the mm commands into core drush, and that the Module Manager module is going the way of the Dodo, is that true?)
I tried and failed to use 'php -a /path/to/drush/drush.php' to maybe step through the code and watch drush bootstrap to try to figure out why it's not finding the pm commands ... any suggestions for trying to debug the problem?
Comments
Comment #1
ccoletta commentedsome other command line interactions to help us suss out what's going on:
Here is the output when I type `drush help`
Comment #2
moshe weitzman commentedyou are using `pm enable` and such. the pm prefix has been dropped.
Comment #3
ccoletta commentedNo that unfortunately doesn't fix the problem. Here are some more command line interactions. How would I step through the php code to debug the problem? Is there a switch to turn on drush debug output?
Comment #4
moshe weitzman commentedAll the command line switches are documented in `drush help`. You want --debug.
Comment #5
CHEETAH commentedHey, I'm having the same exact issue. I am unable to install modules, etc.
I am getting the same error messages as ccoletta...
Does anybody know what gives?
Comment #6
jonhattanCHEETAH, colleta: what is the exact command you are using and the output given with --debug flag ?
You must use --root and --uri to indicate drush what drupal instance it must bootstrap. Alternatively you can go to the drupal dir and run drush from there without --root nor --uri:
Comment #7
jonhattanComment #8
OldAccount commentedSame issue, can't uninstall a module that's already disabled. I've tried "drush uninstall xml_sitemap" from root Drupal directory and still get the same drush_pm_uninstall error.
Comment #9
bbeyer commentedsame issue, I am on version 2 and it tells me my module is not disabled when i try to uninstall but it tells me it is disabled when i try to disable it
Comment #10
greg.1.anderson commentedPresume working in drush-3.0. Please reopen with more information if needed.
Comment #11
greg.1.anderson commentedComment #12
capellicI'm new to Drush. I have it installed and when I run "drush status", I get the expected result. I was able to download the google_analytics module from Drush, but I am not able to enable it:
Comment #13
owen barton commentedPerhaps you downloaded google_analytics somewhere where Drupal can't find it. Either way, we will need more detail to reproduce...
Comment #14
greg.1.anderson commentedThis is a common one. The output of dl was enhanced in HEAD to make this more clear.
So in other words,
drush dl google_analytics, butdrush en googleanalytics.Comment #15
greg.1.anderson commented