Installation of the token module generated the following warnings:
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in token_asort_tokens() (line 175 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Warning: uasort(): Array was modified by the user comparison function in token_get_info() (line 153 of mobilesoftwaredev.com/sites/all/modules/token/token.module).
* Notice: Undefined index: name in _token_token_tree_format_row() (line 159 of mobilesoftwaredev.com/sites/all/modules/token/token.pages.inc).
* Notice: Undefined index: description in _token_token_tree_format_row() (line 161 of mobilesoftwaredev.com/sites/all/modules/token/token.pages.inc).

I am using Drupal 7.0-alpha7.

Comments

Dave Reid’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

That likely means you have some kind of broken tokens from another contrib module. If you're using the entity module, make sure to upgrade to the latest dev release of entity.module.

billsdesk’s picture

Not using the entity module. Trying to isolate the faulty module is going to take a bit of work.

juves’s picture

Assigned: Unassigned » juves

I'm having the same problem

achton’s picture

Not certain that this is related, but certainly a similar notice from Token:

    * Notice: Undefined index: name in _token_token_tree_format_row() (line 109 of /srv/example.dk/sites/all/modules/token/token.pages.inc).
    * Notice: Undefined index: description in _token_token_tree_format_row() (line 112 of /srv/example.dk/sites/all/modules/token/token.pages.inc).

Using latest -dev of Token and D7 beta3. Also using -dev versions of all enabled modules.
How can I help debug this?

Eolmornedhel’s picture

I have found that after enabling the LoginToboggan module I get all the errors mentioned in the OP plus those mentioned in #4. If I then refresh the modules page only the errors in #4 re-occur.

After disabling LoginToboggan and refreshing the modules page the errors disappear.

I have created an issue here : http://drupal.org/node/980626

Eolmornedhel’s picture

Updating to the latest dev release of LoginToboggan solved the errors for me.

achton’s picture

I can confirm that upgrading LoginToboggan fixes these errors.

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking as fixed then!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

I was seeing these similar errors, unrelated to Logintoboggan (I dont have it installed).

Undefined index: name in token_asort_tokens() (line 351 \token.module)

Warning: uasort() [<a href='function.uasort'>function.uasort</a>]: Array was modified by the user comparison function in uasort() (line 319 \token.module)

Notice: Undefined index: name in _token_token_tree_format_row() (line 107\token.pages.inc)

They were related to FileFIeld Paths module not correctly implementing the token.module.

krueschi’s picture

I can confirm this issue to be related with the filefield path module.

Even the message at my site reads
Notice: Undefined index: name in _token_token_tree_format_row() (Zeile 108 von /../sites/all/modules/token/token.pages.inc).
(and not "line 107" instead), this behaviour disappears when filefield path (and pathauto) are disabled.

dreadlocks1221’s picture

I can confirm I have the same problem on 2 sites I am working on

dreadlocks1221’s picture

Status: Closed (fixed) » Active

could be solved with this patch, but appears it hasnt been comitted yet:

http://drupal.org/node/1015460

Dave Reid’s picture

Status: Active » Fixed

That case there is nothing to fix here, so I'm not sure why you changed the status of an issue in Token module...

Status: Fixed » Closed (fixed)

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

mgifford’s picture

If you got here via google for a D7 issue, look here:
#1712336: Notice: Array to string conversion in token_asort_tokens