Drush and Composer both install themes in themes/contrib if that directory exists, but basic-install fails if Basic is installed there.

It should look for 'themes/contrib/basic' if 'themes/basic' is not found and fail gracefully if neither exists.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

beeyayjay created an issue. See original summary.

beeyayjay’s picture

joelpittet’s picture

maybe we could do dirname(__DIR__)? and then just remove the DRUPAL_ROOT from that?

ooystein’s picture

I solved this in the latest patch on this issue #2717331-7: Handle file copy error in drush basic-install on multisite.

You can get the path to basic from the theme it self, $theme_handler->getTheme('basic')->getPath(). I think this is a better solution as it does not restrict the theme from being placed outside of 'themes/contrib/basic' or 'themes/basic' as is the case if you place it in 'sites/*/themes/'.

beeyayjay’s picture

Status: Active » Closed (duplicate)

Thanks, ooystein. I agree, that's a better solution.

Since there's already a patch that deals with this, I'll go ahead and close this issue.