Status report gives me a missing name and description for token: $info['tokens']['node']['field_datum'].

In some edit pages with token support I have more then 80 lines with:

Notice: Undefined index: description in _token_token_tree_format_row() (regel 202 van /home/dev/domains/dev-cmseasy.nl/public_html/groeninfo/sites/all/modules/token/token.pages.inc).
token/token.pages.inc).

When I look in the token overview I see a lot of field_datum tokens without a description:

  • field_datum [current-user:field-editors-node-eb:3:field_datum]
  • field_datum [node:author:feed-node:field_datum]
  • field_datum [node:feed-source:source:field_datum]

and probably 80 more.

The field_datum is used in an event node with a start and a stop date, and a repeat date option.

In other issues I have read about issues using repeat tokens. I don't use these tokens, Getting this only editing fields (date, image,..) with token options.

Do these tokens need some description? Is there a solution (patch) to solve this, without the need to turn off the log function?

Thanks

Comments

BrightBold’s picture

Version: 7.x-2.9-rc1 » 7.x-2.9

Same problem with Date 7.x-2.9. On the status report page:

Tokens Problems detected

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

$info['tokens']['node']['field_event_date']

And I have the following errors in the log:

Notice: Undefined index: name in _token_token_tree_format_row() (line 201 of /whatever/code/sites/all/modules/contrib/token/token.pages.inc).
Notice: Undefined index: description in _token_token_tree_format_row() (line 202 of /whatever/code/sites/all/modules/contrib/token/token.pages.inc).

field_event_date is used in two different nodes (a custom Event node and added to the Meeting node from the Make Meeting Scheduler module. It has start and end dates and the all-day checkbox but not the repeating option.

Any advice on what might be causing this and how to resolve it would be appreciated.

BrightBold’s picture

Hmm. According to #2234015: Missing token descriptions. this is a bug in Drupal core, which in #1911768: Make token and token type descriptions optional is reported as being fixed in D8 but will not be backported to D7. So not clear what we're supposed to do about these errors — we can't just ignore them; my site generated more than 1500 errors in a 4-minute span.

However, in my case I'm suspicious that Make Meeting may have something wrong with how they've implemented token support that's causing this. @cmseasy — are you using any other contrib or custom modules related to your event node that might be causing this problem?