I installed this version today and get the following error messages in the status report:

The following tokens or token types are missing required name and description information:

$info['tokens']['term']['url']
The following token types are not defined but have tokens:

$info['types']['term']

How do I fix this?

Comments

Dave Reid’s picture

Are you using the 'Entity tokens' module at all? I haven't been able to replicate this at all...

Dave Reid’s picture

Status:Active» Postponed (maintainer needs more info)
moreorless’s picture

I'm getting a similar warning. Don't use entity tokens. Installed modules that require tokens are page title and pathauto.

The warning message I get is:

The following tokens or token types are missing required name and description information:

$info['tokens']['comment']['url']

The following token types are not defined but have tokens:

$info['types']['comment']

cybermcm’s picture

I've the same warnings like moreorless. I also don't use entity tokens

rgaskell’s picture

I too see the message like moreorless reported. I updated the token module and then did the core update to 7.8. I wonder if the order made a difference.

dmirtillo’s picture

I'm having the same issue on a 7.8 install which i just updated.

rgaskell, i did it the other way around and i have the issue aswell, so i guess order doesn't matter.

The error message i receive, though, has different tokens:

The following tokens or token types are missing required name and description information:

    $info['tokens']['comment']['url']
    $info['tokens']['term']['url']

The following token types are not defined but have tokens:

    $info['types']['comment']
    $info['types']['term']

patrickkraaij’s picture

I've the same warnings:

The following tokens or token types are missing required name and description information:

$info['tokens']['comment']['url']
The following token types are not defined but have tokens:

$info['types']['comment']

Earlier this month I got the warning:
WD actions: 3 orphaned actions
(when using drush cc all), cause I unchecked the comment module. In admin/config/system/actions there are no more actions for comment. I removed that by using

drush php-eval "actions_synchronize(actions_list(), TRUE);"

https://drupal.org/node/445922#comment-3738188

chemicalroman’s picture

Same problem using last dev and core 7.8

valderama’s picture

I can confirm this problem - after updating to token beta 5 this warning shows up on the status report page. Here I am using D7.7, so the error seems not to be 7.8 specific. Flushing cache didn't help.

Can we reopen this issue?

el7cosmos’s picture

I have this warning with comment module disabled:

The following tokens or token types are missing required name and description information:
$info['tokens']['comment']['url']
The following token types are not defined but have tokens:
$info['types']['comment']

If i enable comment module, the warning didn't appear.

RoSk0’s picture

Same problem:

The following tokens or token types are missing required name and description information:

    $info['tokens']['comment']['url']

The following token types are not defined but have tokens:

    $info['types']['comment']

Dave Reid’s picture

Interesting - so you're getting this error when you have comment module disabled.

rizenine’s picture

Same here. When comments module is disabled it shows this error.

spongecat’s picture

I've lost all Node Hierarchy tokens. I use Entity token module as it is required by Rules.

Dave Reid’s picture

Assigned:Unassigned» Dave Reid
Status:Postponed (maintainer needs more info)» Active

@spongecat: This is not related to the issue at hand.

Thanks all for helping debug this - this helped expose a bug in token.module's own hook_token_info_alter(). I'm on it.

corbacho’s picture

After updating Token to the last version, I have this error: (Drupal 7.7)

<?php
The following token types are not defined but have tokens
:

   
$info['types']['menu_link']
?>
animelion’s picture

#12 Yup, I have the comment module disabled and I'm getting these. Drupal 7.7

jies’s picture

#12: I have the same 'Status Report' message with Comment module disabled. When I enable it, the message clears. Drupal 7.4 Acuia Dev Desktop.

Patricia_W’s picture

I'm not using Entity tokens. I am using Pathauto which depends upon Token.

francisco_t’s picture

Problem with meta tags quick module?

The following token types are not defined but have tokens:

    $info['types']['metatags_path_based']
    $info['types']['comment']

Dave Reid’s picture

Status:Active» Fixed
Issue tags:-D7AX

This should be addressed for the following items with http://drupalcode.org/project/token.git/commit/f147805 in 7.x-1.x-dev:
$info['tokens']['comment']['url']
$info['tokens']['term']['url']
$info['types']['comment']
$info['types']['term']

If you are getting this notice for other types, you will need to file an issue with the modules that provides the offending tokens.

BeaPower’s picture

Is that the fix, can anyone comment on whether #21 worked?

chemicalroman’s picture

#21 worked for me, thanks!

calculus’s picture

Sub

upupax’s picture

I confirm that #21 solved the $info['types']['comment'] issue with Comment module disabled.

Patricia_W’s picture

#21 also solved my problem. Thanks.

Balu Ertl’s picture

I confirm that #21 eliminated the yellow notice of missing tokens on Status Report page. Thanks, Dave!

moreorless’s picture

#21 worked for me as well.

Thanks for the fix.

Frank Ralf’s picture

#21 did the trick, thanks!

PS:
I couldn't apply the patch using NetBeans as usual. Is the Git patch format any different from the CVS patch format?

MZiray’s picture

The lastest dev release (from Sept 6) fixes this issue. So no need to apply that patch anymore, just get the latest dev version.

dadderley’s picture

Had the same problem as above.
The lastest dev release (from Sept 6) fixes this issue.

Thanks AvalonInnovations.

thomsol’s picture

Version:7.x-1.0-beta5» 7.x-1.x-dev

Applied latest dev, still getting Status Report message:

The following token types do not have any tokens defined:

$info['tokens']['computed']

shaisamuel’s picture

Status:Active» Fixed

Me too like #32 (Sep 6 dev ver)

Since there are 2 of us, I changed the status to active.

shaisamuel’s picture

Status:Fixed» Active
klonos’s picture

Status:Fixed» Active

Yep, still getting the $info['tokens']['computed'] not defined even after installing latest dev from Sep 6.

Dave Reid’s picture

Status:Active» Fixed

Please file an issue with the Computed field module.

klonos’s picture

You're right Dave, just thought it might be something that could be handled in Token. Here's the issue in Computed field project's queue: #1275946: Site status report -> Problems detected: The following token types do not have any tokens defined: $info['tokens']['computed']

pissouxxx’s picture

Got a similar problem with notifications

Tokens Problems detected

The following token types do not have any tokens defined:

$info['tokens']['subscription']

The following token types are not defined but have tokens:

$info['types']['notifications_subscription']

Kyle Skrinak’s picture

#21 fixes the problem here, as should the latest dev release. I had to delete token, and replaced it with the Sept 6 download, to see the change. "drush up" alone may not trigger a thorough update.

Kyle Skrinak’s picture

Note: I'm seeing this same error with the 7.x-1.0-beta5 branch.

steinmb’s picture

#21 fixes this problem, thanx Dave! :)
Anyone still seeing this pls. make sure you are running latest dev.

loicgao’s picture

#21 fixes some problems, but I have still this warning

The following token types are not defined but have tokens:

$info['types']['profile2']

klonos’s picture

Hey, Loïc, you'll need to file this as a separate issue in the Profile 2 project's issue queue (same way we did for #1275946: Site status report -> Problems detected: The following token types do not have any tokens defined: $info['tokens']['computed'] in the Computed field project's issue queue).

mgifford’s picture

I just got this too after upgrading to 7.x-1.0-beta5 on Drupal 7.8.

I'm not certain where to go to fix this or what effect it is likely to have.

Status:Fixed» Closed (fixed)

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

wendallsan’s picture

Component:Code» Miscellaneous
Status:Closed (fixed)» Active

I still get the following warning in my Status Report:

Tokens Problems detected

The following token types do not have any tokens defined:

$info['tokens']['subscription']

This is a duplicate of item #38 above.

How can I fix this or suppress this message from the status report if it's not actually a problem?

Dave Reid’s picture

Component:Miscellaneous» Code
Status:Active» Closed (fixed)

Then please file an issue in the subscriptions module - or try updating the subscriptions module to the latest dev and checking to see if this has already been fixed.

felixvang’s picture

I'm new to this. how did you get #21 apply to work? Do you have any instruction on how to apply?

giorez’s picture

about #21, sorry for the newbie question.

Tokens Problems detected
The following token types are not defined but have tokens:
$info['types']['sms_user']

Should I open an issue in the smsframework module project?

afpteam’s picture

Re: 21 above,

FWIW, I just did a fresh install of Groups with Token 7.x-1.4 having Groups Example enabled and found the problem continues even with the patch. Not sure how that will affect the $info['types']['comment'] use with respect to url's as the patch seems to address.

I turned off 'Message OG example' and 'Message example', which stopped the production of the php error message ...

Notice: Undefined index: membership_type in og_entity_property_info() (line 236 of /var/www/drupal/sites/all/modules/og/og.module)

s1l’s picture

@arpteam #50:
That 'line 236 Undefined index Notice' might be related to this issue:
#1937530: Organic Group Widget on an Entity Reference field not working properly

matbaa’s picture

Issue summary:View changes

I have the same warnings too

karnakitab’s picture

I have this error message with latest dev as well as stable versions of token.

Tokens
Problems detected
The following tokens or token types are missing required name and/or description information:

$info['tokens']['vote_results']['count-vote-cache-id']
$info['tokens']['vote_results']['count-function']
$info['tokens']['vote_results']['average-vote-cache-id']
$info['tokens']['vote_results']['average-function']
$info['tokens']['vote_results']['sum-vote-cache-id']
$info['tokens']['vote_results']['sum-function']

Any tricks to solve this?

narayankumar’s picture

Yes. Same as above:

The following tokens or token types are missing required name and/or description information:

$info['tokens']['vote_results']['count-vote-cache-id']
$info['tokens']['vote_results']['count-function']
$info['tokens']['vote_results']['average-vote-cache-id']
$info['tokens']['vote_results']['average-function']
$info['tokens']['vote_results']['sum-vote-cache-id']
$info['tokens']['vote_results']['sum-function']
$info['tokens']['vote_results']['positives-vote-cache-id']
$info['tokens']['vote_results']['positives-function']
$info['tokens']['vote_results']['negatives-vote-cache-id']
$info['tokens']['vote_results']['negatives-function']

karnakitab’s picture

@narayankumar use the patch https://www.drupal.org/files/voting_rules_missing_token_description-1268... to your voting_rules files.
You can apply this diff patch using Netbeans/Eclipse IDE in case you are on Windows machine. I successfully applied this patch on my Red Hat server. Hope this helps.

bisonbleu’s picture

Patch referenced in #55 worked for me. Thanks all!