If on the Drupal 6 site the theme is located in the profile folder, then on the drush site update that theme is not loaded and as a result the theme is disabled.

Attached patch fixes this bug. It moves full bootstrapping before the drupal_maintenance_theme() function in which paths to the themes are collected and stored in the static variable.

Also, assignment $profile = variable_get('install_profile', 'default'); is not needed here as the $profile is already populated on full bootstrap.

CommentFileSizeAuthor
drush.patch1.45 KBmiglius

Comments

moshe weitzman’s picture

Assigned: Unassigned » adrian

Do other versions (D5, D7) need changes? Can anyone review this?

adrian’s picture

Status: Needs review » Needs work

during an upgrade to drupal 6 , the site can't bootstrap full yet.

samhassell’s picture

I have a D6 situation that sounds the same as this - however it is occurring during 'drush updb', not an actual drupal version upgrade.

I'm working around it by setting the theme enabled after the update with:

drush sql-query "update system set status = 1 where name = 'themename';"

greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Component: Code » Base system (internal API)
Status: Needs work » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.