Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #2
mpotter CreditAttribution: mpotter commentedI 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.
Comment #3
hosais CreditAttribution: hosais as a volunteer commentedHi Mike, thank you very much for your quick reply. It seems "clean cache" works. Now the new theme created.
Comment #4
hosais CreditAttribution: hosais as a volunteer commentedComment #5
hosais CreditAttribution: hosais as a volunteer commentedHi 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.
Comment #6
kdmcguire CreditAttribution: kdmcguire commentedmpotter: 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?
Comment #7
mpotter CreditAttribution: mpotter commentedDid you follow what was said in #5 and try to enable oa_basetheme first?
Comment #8
kdmcguire CreditAttribution: kdmcguire commentedYes, 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.Comment #9
kdmcguire CreditAttribution: kdmcguire commentedOn a new install, this is what happens:
Comment #10
hosais CreditAttribution: hosais as a volunteer commentedMay I know your drush version? I have two installations. The one with drush 7 cannot but drush 8 can.
Comment #11
mpotter CreditAttribution: mpotter at Phase2 commentedYeah, 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.
Comment #12
joep.hendrix CreditAttribution: joep.hendrix at CompuBase Internet Solutions commentedSame 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.
Comment #13
kdmcguire CreditAttribution: kdmcguire commentedI'm using Drush 8.0.0-rc1 with Acquia Dev Desktop.
Comment #14
tbridge CreditAttribution: tbridge commentedSame issue here:
Or, no friendly name and machine name not explicit:
Or, just machine name:
Anyone have any ideas?