First of all: Thanks for this awesome tool, I don't want to live without anymore!

I'm using latest head. Drush fails on updating the theme I use (Pixture Reloaded).

It correctly recognizes the theme and the availability of an update:

  Name                                  Installed version       Proposed version        Status
  ----                                  -----------------       ----------------        ------
  Pixture Reloaded                      6.x-3.0                 6.x-3.2                 Update available

but comes up with the following errors:

Module pixture_reloaded path is not available, perhaps the module is enabled but has been deleted from disk.                 [error]
Cache cleared.
An error occurred at function : drush_core_cache_clear                                                                          [error]
You should now run `drush updatedb` or visit update.php through your browser.
An error occurred at function : drush_pm_updatecode                                                                             [error]
An error occurred at function : drush_pm_update                                                                                 [error]

Running drush updatedb doesn't help.
The theme is installed in sites/all/themes, it is activated, and I have double-checked that files are in place. Updating of modules works without problems.

Comments

budda’s picture

I experienced the same with the rootcandy theme installed in /sites/all/themes wanting an update.

nadavoid’s picture

I get this error too. My hunch is that something in the update function thinks it's a module instead of a theme, and so it erroneously looks for a "module" path.

moshe weitzman’s picture

Status: Active » Closed (works as designed)

`drush help update` states that it currently works with modules only.

nadavoid’s picture

Title: Theme Update failed » Enable theme updates
Category: bug » feature
Status: Closed (works as designed) » Active

Since theme updates are currently not implemented, I'm changing this issue to a feature request, updating the Title, and setting the status to active. I think enabling theme updates is expected, since it is possible to download themes the same as modules "drush dl cck zen", and since the "drush update" alerts you to theme updates and even attempts to download them. Let me know if this should be posted as a separate issue, and I'll go ahead and do that.

budda’s picture

I'd be happy if drush didn't attempt to download and update my theme if its "by design". Because right now it simply stops drush from working because it fails on the theme update.

budda’s picture

#261715: Drush tries to update themes but fails... would seem to indicate that this issue is fixed?

aren cambre’s picture

Title: Enable theme updates » Drush pretends to handle theme updates but can't
Category: feature » bug

Got the same problem. If the Drush maintainers do not intend to work with themes, then this is a UI bug.

mlncn’s picture

Title: Drush pretends to handle theme updates but can't » Enable theme updates (or do not attempt theme updates when running drush updatecode and clarify in listing)
Category: bug » feature

Still slightly more of a feature request than a bug report... posters in this thread would prefer Drush to update themes as well as modules, though it would be best to do this in a separate command, or have an easy way to exclude projects from updatecode.

aren cambre’s picture

Title: Enable theme updates (or do not attempt theme updates when running drush updatecode and clarify in listing) » Enable theme updates

Thanks. I opened #517116: Drush can't update themes but implies it can to track the UI bug.

shark’s picture

I had this issue as well. A (perhaps obvious workaround) is to just download the theme, overwriting its previous files:
drush dl themename

AdrianB’s picture

A (perhaps obvious workaround) is to just download the theme, overwriting its previous files:
drush dl themename

Actually, this was so obvious that I missed it (all the "drush can't update themes" talk made me forget this very simple workaround), thanks. :)

gthing’s picture

*Slaps hand against forehead*

moshe weitzman’s picture

I didn't think of that either. I think the command needs to download and then clear theme registry.

attheshow’s picture

subscribing

Andrew Schulman’s picture

Category: feature » bug

Still slightly more of a feature request than a bug report... posters in this thread would prefer Drush to update themes as well as modules, though it would be best to do this in a separate command, or have an easy way to exclude projects from updatecode.

There are two issues:

  1. We'd like drush update to update themes.
  2. drush update tries to update themes, but croaks with an error message when it can't because it thinks they're modules.

The first is a feature request. The second is a bug.

aren cambre’s picture

Category: bug » feature

Per #9, the bug part was transferred to #517116: Drush can't update themes but implies it can.

Andrew Schulman’s picture

OK, thanks. Sorry for the confusion.

owen barton’s picture

Status: Active » Fixed

Committed a change that should enable this functionality, as well as correcting some of the language issues. All we needed to do was get the path for themes, since Drupal does not appear to add this to the update array.

Please test and open additional issues for any bugs.

nadavoid’s picture

I just tested the latest from CVS HEAD and it was able to easily update two modules themes that I had that were out of date. Works like a charm!

Status: Fixed » Closed (fixed)

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