Closed (fixed)
Project:
Drush
Version:
7.x-4.5
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2011 at 15:44 UTC
Updated:
8 May 2012 at 01:27 UTC
If a module is not present in filesystem but is present and enabled in database (system.status == 1)
Any attempt to enable or disable any other existent module will produce a WD message:
- Illegal choice in status element.
And drush exits with non zero return code, although the operation is completed, it is not possible to use drush in scripts because of the non zero return code.
Thanks
Alexandrezia
Comments
Comment #1
moshe weitzman commentedThat sounds like drupal is throwing an error with drupal_set_message('foo', 'error') and drush is faithfully recording the error. You need to complain to the author of the code that is throwing the error. I can't tell if that is Drupal core or a contrib module from your description. It looks like core form api. Either way, drush is just following orders here.
Comment #3
elijah lynnThis is happening to me because I am on my local environment and using git. Say I am working on the branch feature/blog that has a Feature in it and then I want to switch to the develop branch to install a module that really has nothing to do with the blog. I switch, dl & en the module and then I get these errors. I put this here just to help someone else in the future who may not realize that this could be why they are getting this error.