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.
So I download and enable adaptivetheme. It's the only theme on my machine (Mac OS X if that matters).
~/Sites/ra (master)
$ drush @my.local adaptivetheme "RA Theme" ra_theme
/profiles/ra/themes/contrib/adaptivetheme/at_coredrush: The directory "/profiles/ra/themes/contrib/adaptivetheme/at_core/../at_subtheme" was not found.
Drush command terminated abnormally due to an unrecoverable error.
The fix is actually pretty straight forward I think, will supply a patch momentarily.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1935340-adaptive-theme-drush-path-01.patch | 1.18 KB | MKorostoff |
Comments
Comment #1
MKorostoff CreditAttribution: MKorostoff commentedHere's a patch that should address this
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, will try to test this over the weekend, cheers.
Comment #3
capynet CreditAttribution: capynet commentedIt's not an error, just go to admin/appearance and enable "AT Core". Now you can run from any point inside your drupal installation:
drush adaptivetheme "My theme" mytheme
or
drush adaptivetheme "My theme"
The last command generates a machiname like "my-theme"
Comment #4
capynet CreditAttribution: capynet commentedComment #5
Plazik CreditAttribution: Plazik commentedI have the same issue and I think it's a bug. Drush gereration doesn't work with drush aliases like
@my.local
in the first post.I've tested patch from #1 with adaptivetheme 7.x-3.x-dev and drush 7.x-dev and all works fine.
Comment #6
Jeff Burnz CreditAttribution: Jeff Burnz commented