Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to run the drush command omega-subtheme drush replies in error stating that omega is not enabled although it is.
# drush omega-subtheme omega4_theme
Command omega-subtheme needs the following module(s) enabled to run: omega. [error]
The drush command 'omega-subtheme omega4_theme' could not be executed. [error]
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedPlease search the issue queue before posting new issues. I've answered this question at least three times.
Also, on the project page it clearly states that you should NOT run Omega 4.x with Omega Tools. Omega 4.x has drush integration on its own. You don't need Omega Tools anymore. Even worse, if you run Omega Tools together the commands overlap and cause this error message.
So, remove Omega Tools (completely) and then, don't use the omega-subtheme command directly but instead go with the omega-wizard command.
"drush omega-wizard" (no arguments)
Comment #2
doostinharrell CreditAttribution: doostinharrell commentedI am working off a fresh install of Drupal 7.22 with using Omega 7.x-4.0-beta4. I have not installed omega-tools with this version. I actually read through much of the read me file and reviewed the previous drush posts none of which helped.
Any assistance would be greatly appreciated. Thanks.
Here is a printout for verification:
# drush pm-list | grep omega
Other Omega (omega) Theme Enabled 7.x-4.0-beta4
# drush omega-subtheme
Command omega-subtheme needs the following module(s) enabled to run: omega. [error]
The drush command 'omega-subtheme' could not be executed. [error]
# drush omega-wizard
Command omega-wizard needs the following module(s) enabled to run: omega. [error]
The drush command 'omega-wizard' could not be executed. [error]
#drush core-status
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : root
Database name : omega4
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : omega
Administration theme : seven
PHP configuration : /etc/php.ini
Drush version : 6.0-dev
Drush configuration :
Drupal root : /wmdev/dustin/www.omega4.com
Site path : sites/default
File directory path : sites/default/files
Comment #3
doostinharrell CreditAttribution: doostinharrell commentedIssue resolved...
I changed my default theme to seven, disabled omega, cleared the cache, enabled omega, set omega back as my default theme and now the prompts for omega-subtheme and omega-wizard are working.
Not sure what happened there but everything appears to be working as expected.
Thanks,
Dustin
Comment #4
vagelis-prokopiou CreditAttribution: vagelis-prokopiou as a volunteer commentedI had the same issue with a fresh install (Drupal 7.41 & Omega 7.x-4.4). “drush omega-wizard” said that I had to enable omega while omega was enabled. I chose Omega as the default theme, and then it run with no problem.
Comment #5
s_leu CreditAttribution: s_leu at MD Systems GmbH commentedThe problem still exists. It's obviously related to the used drush version. When i used drush 7 it didn't work, even when i set omega as the default theme. When i used drush 5 it worked, even when i disabled the omega base theme.
Comment #6
steinmb CreditAttribution: steinmb as a volunteer commentedPls. do not open this issue. It is related to drush and will not be fixed in Omega. It is not specific to Omega in any way.