Download & Extend

Zen template error prevents Drush from upgrading it

Project:Zen
Version:6.x-2.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Here's the output:

$ drush update
Refreshing update status information ...
Done.
Update information last refreshed: Sun, 2009-11-08 08:44

Update status information on all installed and enabled Drupal modules:
Name                            Installed      Proposed       Status
                                 version        version
Administration menu             6.x-1.5        6.x-1.5        Up to date
[...snippage...]
Zen                             6.x-2.x-dev    6.x-2.x-dev    Update
                                                               available

Code updates will be made to the following projects:
Zen [zen-6.x-2.x-dev]

Note: Updated modules can potentially break your site. It's not recommended to update production sites without prior testing.
Note: A backup of your package will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue? (y/n): y
Module zen path is not available, perhaps the module is enabled but  [error]
has been deleted from disk.
Cache cleared.
An error occurred at function : drush_core_cache_clear               [error]
An error occurred at function : drush_pm_updatecode                  [error]
An error occurred at function : drush_pm_update                      [error]
$

Important characteristics of the Zen template:

  • Not the selected template, but it's enabled.
  • Selected and enabled template is a Zen subtheme.
  • Zen master is in sites/all/templates.
  • Subtheme is in sites/[mysite]/templates

Comments

#1

I'm getting exactly the same problem updating Zen, though the versions are 6.x-1.0 and 6.x-1.1, respectively. I tried upgrading manually (replacing the zen theme directory with the new version), but I still got the same error message. Is there a workaround for this, like some way to reset Drush's database, so that I can upgrade it manually?

#2

This seems to be caused by a block of information in the .info file for the Zen sub-theme.

; Information added by drupal.org packaging script on 2009-02-13
version = "6.x-1.0"
core = "6.x"
project = "zen"
datestamp = "1234555897"

If you delete that block, you won't get the error any more. Also, it seems that the new zen-6.x-1.1 STARTERKIT doesn't include that block any more, so it shouldn't be a problem going forward.

#3

But I'm not trying to upgrade a subtheme. The problem is the Zen parent theme.

#4

Project:Drush» Zen
Version:All-Versions-2.1» 6.x-1.1
Component:Code» Miscellaneous

I too cannot upgrade following http://drupal.org/node/219527

Drupal just tells me the zen theme is out of date.

Gecko

#5

Project:Zen» Drush
Version:6.x-1.1» All-Versions-2.1
Component:Miscellaneous» Code

Putting issue back into correct queue.

#6

Status:active» fixed

#2 has identified the reason this module update fails

Tip: you do need to delete that relevant block in the .info files for all sub themes, including zen and zen_classic

#7

Title:Can't update Zen template» Zen template error prevents Drush from upgrading it
Project:Drush» Zen
Version:All-Versions-2.1» 6.x-2.x-dev
Component:Code» Miscellaneous
Status:fixed» active

#8

Status:active» fixed

The problem mentioned in comment #2 has already been fixed for new sub-themes in Zen 6.x-1.1 and later. See #254821: Sub-theme's .info file triggers incorrect "out of date" flag in update module

#9

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here