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

gr33nman’s picture

Incidentally, I don't have a WD theme in core themes or sites/all/themes, so I don't know why it's coming up.

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure. Maybe it's somewhere in site/default/themes or sites/yoursite.com/themes, or maybe burined in a module folder.

gr33nman’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I 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!

rfay’s picture

Status: Closed (fixed) » Active

@davereid, would you mind explaining what this error message means in general?

I get
Theme key "token_tree" not found

in the dblog regularly

with latest token HEAD

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

It 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.

rfay’s picture

Unfortunately I don't seem to be able to get it to happen on demand.

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, marking as fixed until it can be reliably reproduced.

Status: Fixed » Closed (fixed)

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

kemsnake’s picture

Status: Closed (fixed) » Postponed

I got this message after enabling token module.
it happens on latest head and dev version.
any ideas?

bfroehle’s picture

kemsnake: try clearing the theme registry

latulipeblanche’s picture

Like #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.

JimSmith’s picture

I 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.

$ drush @mysite.dev dl pathauto
Project pathauto (7.x-1.0-beta1) downloaded to                                          [success]
/home/jns/websites/wateprod.dev/sites/all/modules/pathauto.
$ drush @mysite.dev en pathauto
The following projects have unmet dependencies:
pathauto requires token
Would you like to download them? (y/n): y
Project token (7.x-1.0-beta1) downloaded to                                             [success]
/home/jns/websites/mysite.dev/sites/all/modules/token.
The following extensions will be enabled: token, pathauto
Do you really want to continue? (y/n): y
WD theme: Theme key "token_tree" not found.                                             [warning]
token was enabled successfully.                                                         [ok]
pathauto was enabled successfully.                                                      [ok]
Dave Reid’s picture

Status: Postponed » Fixed

If it just happens once, it can just be ignored.

Dave Reid’s picture

Actually I think I discovered why this was happening and have committed a fix to Git: http://drupalcode.org/project/token.git/commit/17c7309

rfay’s picture

Well YAY! Would be so cool

Status: Fixed » Closed (fixed)

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

mkalkbrenner’s picture