I got this warning after disabling and uninstalling profile2 (I had created a new profile login page). I reinstalled profile2, but the error message wouldn't go away.

I tried to apply this patch: http://drupal.org/files/issues/1252566-token-bundle-undefined-wtf.patch but to no avail. Any suggestions?



The following warning is repeated four times on my status report page after uninstalling forum, advanced forum, forum access and mini-panels. Not sure how to correct this.

Notice: Undefined index: label in _token_field_info() (line 1293 of /home/example/public_html/sites/all/modules/token/token.tokens.inc).

Dave Reid’s picture

Status: Active » Closed (duplicate)

See #1252566: PHP notice: Undefined index in _token_field_info() this should be fixed in the latest release.

jorisx’s picture

Ran into the same problem,
Had to rollback from media module v2 to mediamodule v1 and now back to v2 again, but not sure if that's the problem

Currently with every module install or field creation I get these kind of notices

Notice: Undefined index: media in _token_field_info() (line 1334 xxx/public_html/sites/all/modules/token/token.tokens.inc).
Notice: Undefined index: module in _field_info_prepare_instance_display() (line 354 of xxx/public_html/modules/field/field.info.inc).

Chris Charlton’s picture

Same scenario for me. Same error.

Notice: Undefined index: media in _token_field_info() (line 1334 of /drupal/sites/all/modules/contrib/token/token.tokens.inc).

CrashNet’s picture

Update to add I too receive this error with the latest Security update for Token:

Notice: Undefined index: label in _token_field_info() (line 1323 of /Applications/MAMP/htdocs/cs/sites/all/modules/token/token.tokens.inc).

gr4phic3r’s picture

Issue summary: View changes

still there, get this message after using tokens in the display suite by adding a new "code field"

Notice: Undefined index: profile2 in addressfield_tokens_tokens() (line 249 of PATH\sites\all\modules\addressfield_tokens\addressfield_tokens.tokens.inc).

Chris Charlton’s picture

Status: Closed (duplicate) » Needs work

Just in case, I'm going to reopen this ticket. Maintainers feel free to re-close this if necessary.

Is this ticket "closed" because of this comment, where a bad Features design/export would cause this for people? https://www.drupal.org/node/1252566#comment-4930096 ... or is this still a valid issue?