Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2010 at 13:14 UTC
Updated:
4 Dec 2011 at 00:11 UTC
When using drush to enable this module in D7, I get this response, but says it's successful:
$ drush pm-enable token
The following projects will be enabled: token
Do you really want to continue? (y/n): y
WD theme: Theme key "token_tree" not found. [warning]
token was enabled successfully. [ok]
I'm not exactly sure what this means or if this is helpful for debugging and would appreciate feedback.
Comments
Comment #1
gr33nman commentedIncidentally, I don't have a WD theme in core themes or sites/all/themes, so I don't know why it's coming up.
Comment #2
dave reidI'm not sure. Maybe it's somewhere in site/default/themes or sites/yoursite.com/themes, or maybe burined in a module folder.
Comment #3
gr33nman commentedI got rid of every non-core theme except zen and my zen sub-theme.
drush no longer gives me the feedback when disabling, then re-enabling token.
Ergo, it could be one of these D7-enhanced themes:
ad_blueprint
ad_novus
basic
corolla
koi
nifty50
omega
web110
I hope this helps someone.
Cheers!
Comment #4
rfay@davereid, would you mind explaining what this error message means in general?
I get
Theme key "token_tree" not foundin the dblog regularly
with latest token HEAD
Comment #5
dave reidIt sounds like the theme registry needs to be rebuilt. I'm not sure what else could be causing this because I cannot duplicate with just HEAD + token. The token_tree theme item is defined by token_theme(), so I'm kinda clueless about it. Someone will have to go into the theme() function and debug where this is coming from.
Comment #6
rfayUnfortunately I don't seem to be able to get it to happen on demand.
Comment #7
dave reidOk, marking as fixed until it can be reliably reproduced.
Comment #9
kemsnake commentedI got this message after enabling token module.
it happens on latest head and dev version.
any ideas?
Comment #10
bfroehle commentedkemsnake: try clearing the theme registry
Comment #11
latulipeblanche commentedLike #3
$ drush dl pathauto
Project pathauto (7.x-1.0-beta1) downloaded to /var/www/drupal/sites/all/modules/pathauto. [success]
$ drush en pathauto
Module pathauto cannot be enabled because it depends on the following modules which could not be found:
token [error]
$ drush dl token
Project token (7.x-1.0-beta1) downloaded to /var/www/drupal/sites/all/modules/token. [success]
$ drush en pathauto
The following extensions will be enabled: token, pathauto
WD theme: Theme key "token_tree" not found. [warning]
token was enabled successfully. [ok]
pathauto was enabled successfully. [ok]
$ drush dis pathauto
The following extensions will be disabled: pathauto
pathauto was disabled successfully. [ok]
$ drush dis token
The following extensions will be disabled: token
token was disabled successfully. [ok]
$ drush en token
The following extensions will be enabled: token
token was enabled successfully. [ok]
$ drush en pathauto
The following extensions will be enabled: pathauto
pathauto was enabled successfully.
And no message coming up anymore.
Comment #12
jimsmith commentedI got the same message on a new 7.x site build. I haven't added any contrib or custom themes yet and the only contrib modules added so far are Views and CTools. As in #11, I forgot about Pathauto's dependency on Token when I enabled Pathauto.
Comment #13
dave reidIf it just happens once, it can just be ignored.
Comment #14
dave reidActually I think I discovered why this was happening and have committed a fix to Git: http://drupalcode.org/project/token.git/commit/17c7309
Comment #15
rfayWell YAY! Would be so cool
Comment #17
mkalkbrennerit's a drush issue:
#1360408: WD Theme warnings when modules using theme functions within their implementation of hook_help()