Hi,

In the base_theme, it says:
##Creating a sub-theme from OA Basetheme
* drush oa_basetheme new_theme_name

but after I run drush command, I got

Command oa_basetheme needs the following module(s) enabled to run: . [error]
The drush command 'oa_basetheme newtheme' could not be executed. [error]

Do I need to set something more for drush to run this command?

Thanks.

Comments

hosais created an issue. See original summary.

mpotter’s picture

I haven't seen that one. One of our devs reports that he had to sometimes clear cache before creating a subtheme, so maybe try that.

hosais’s picture

Hi Mike, thank you very much for your quick reply. It seems "clean cache" works. Now the new theme created.

hosais’s picture

Status: Active » Closed (fixed)
hosais’s picture

Hi Mike, I just would like to clarify that it was because oa_base_theme must be enabled. Only enabling oa mordern theme is not enough. Clean cache may be needed when changing the settings of the theme so that drush command can be run. Thanks again.

kdmcguire’s picture

mpotter: I'm also having this problem - the exact same error messages - but clearing the cache isn't solving it. Would you prefer for me to open a new issue or re-open this one?

mpotter’s picture

Did you follow what was said in #5 and try to enable oa_basetheme first?

kdmcguire’s picture

Yes, oa_basetheme is enabled and I cleared the caches after enabling it. I can run drush help oa_basetheme and receive the expected response, too.

kdmcguire’s picture

On a new install, this is what happens:

drush en oa_basetheme -y

The following extensions will be enabled: oa_basetheme
Do you really want to continue? (y/n): y
oa_basetheme was enabled successfully                     [ok]

drush cc all

'all' cache was cleared.                                  [success]

drush oa_basetheme new_theme

Command oa_basetheme needs the following module(s)        [error]
enabled to run: oa_basetheme.
The drush command `oa_basetheme new_theme` could          [error]
not be executed.

drush en oa_basetheme

oa_basetheme is already enabled.

The following extensions will be enabled: oa_basetheme
Do you really want to continue? (y/n): y
oa_basetheme was enabled successfully                     [ok]
hosais’s picture

May I know your drush version? I have two installations. The one with drush 7 cannot but drush 8 can.

mpotter’s picture

Yeah, that would be interesting. I'm using drush 8 here so maybe that's why it works. Although not sure what changed in drush to cause this.

joep.hendrix’s picture

Same problem here on an existing OA site.
I have Drush version 8.0.1
I also tried to copy the oa_basetheme from profiles/openatrium/themes to sites/all/themes but the result is the same.

kdmcguire’s picture

I'm using Drush 8.0.0-rc1 with Acquia Dev Desktop.

tbridge’s picture

Same issue here:

$ drush cc all
'all' cache was cleared.
$ drush version
 Drush Version   :  8.0.1
$ drush en oa_basetheme -y
oa_basetheme is already enabled.                                                                        [ok]
The following extensions will be enabled: oa_basetheme
Do you really want to continue? (y/n): y
oa_basetheme was enabled successfully.
$ drush -v oa_basetheme "My OpenAtrium 2.60 Theme" --mac hine_name=my_oa_theme
Initialized Drupal 7.43 root directory at /mnt/gfs/sitename/livedev/docroot                            [notice]

Initialized Drupal site default at sites/default                                                           [notice]

Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_2fogZH --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_ns2YTN
Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_IqVKgw --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_D1YZ7B
Constant BOOTSWATCH_URI already defined oa_radix.drush.inc:10                                              [notice]

Command oa_basetheme needs the following module(s) enabled to run: oa_basetheme.                        [error]
The drush command 'oa_basetheme My OpenAtrium 2.60 Theme' could not be executed.                        [error]

Or, no friendly name and machine name not explicit:

$ drush -v oa_basetheme my_oa_theme
Initialized Drupal 7.43 root directory at /mnt/gfs/sitename/livedev/docroot                            [notice]

Initialized Drupal site default at sites/default                                                           [notice]

Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_q9Mn7S --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_MCMVze
Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_c28Clc --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_IEouJx
Constant BOOTSWATCH_URI already defined oa_radix.drush.inc:10                                              [notice]

Command oa_basetheme needs the following module(s) enabled to run: oa_basetheme.                        [error]
The drush command 'oa_basetheme my_oa_theme' could not be executed.                                     [error]

Or, just machine name:

$ drush -v oa_basetheme --machine_name=my_oa_theme
Initialized Drupal 7.43 root directory at /mnt/gfs/sitename/livedev/docroot                            [notice]

Initialized Drupal site default at sites/default                                                           [notice]

Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_zfeoZE --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_q8WHgK
Executing: mysql --defaults-extra-file=/mnt/tmp/sitename/drush_DEORyu --database=sitename--host=server-5808 --port=3306 --silent  < /mnt/tmp/sitename/drush_E4Z6Lz
Constant BOOTSWATCH_URI already defined oa_radix.drush.inc:10                                              [notice]

Command oa_basetheme needs the following module(s) enabled to run: oa_basetheme.                        [error]
The drush command 'oa_basetheme' could not be executed.                                                 [error]

Anyone have any ideas?