Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 May 2009 at 08:13 UTC
Updated:
2 Feb 2010 at 03:40 UTC
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
Comment #1
buddaI experienced the same with the rootcandy theme installed in /sites/all/themes wanting an update.
Comment #2
nadavoid commentedI 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.
Comment #3
moshe weitzman commented`drush help update` states that it currently works with modules only.
Comment #4
nadavoid commentedSince 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.
Comment #5
buddaI'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.
Comment #6
budda#261715: Drush tries to update themes but fails... would seem to indicate that this issue is fixed?
Comment #7
aren cambre commentedGot the same problem. If the Drush maintainers do not intend to work with themes, then this is a UI bug.
Comment #8
mlncn commentedStill 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.
Comment #9
aren cambre commentedThanks. I opened #517116: Drush can't update themes but implies it can to track the UI bug.
Comment #10
shark commentedI had this issue as well. A (perhaps obvious workaround) is to just download the theme, overwriting its previous files:
drush dl themenameComment #11
AdrianB commentedActually, this was so obvious that I missed it (all the "drush can't update themes" talk made me forget this very simple workaround), thanks. :)
Comment #12
gthing commented*Slaps hand against forehead*
Comment #13
moshe weitzman commentedI didn't think of that either. I think the command needs to download and then clear theme registry.
Comment #14
attheshow commentedsubscribing
Comment #15
Andrew Schulman commentedThere are two issues:
drush updateto update themes.drush updatetries 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.
Comment #16
aren cambre commentedPer #9, the bug part was transferred to #517116: Drush can't update themes but implies it can.
Comment #17
Andrew Schulman commentedOK, thanks. Sorry for the confusion.
Comment #18
owen barton commentedCommitted 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.
Comment #19
nadavoid commentedI just tested the latest from CVS HEAD and it was able to easily update two
modulesthemes that I had that were out of date. Works like a charm!