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

fubhy’s picture

Version: 7.x-4.0-beta4 » 7.x-4.x-dev
Category: bug » support
Priority: Major » Minor
Status: Active » Closed (works as designed)

Please 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)

doostinharrell’s picture

I 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

doostinharrell’s picture

Issue 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

vagelis-prokopiou’s picture

Issue summary: View changes

I 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.

s_leu’s picture

Priority: Minor » Normal
Status: Closed (works as designed) » Active

The 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.

steinmb’s picture

Status: Active » Closed (works as designed)

Pls. 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.