Referrer /admin/people/permissions/3
Message Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 328 of /home/hoslot5/public_html/sites/all/modules/token/token.module).
Severity warning

Followed by a bunch of these:
Notice: Undefined index: name in token_asort_tokens() (line 360 of /home/hoslot5/public_html/sites/all/modules/token/token.module).

Followed by a ton of these:
Notice: Undefined index: name in _token_token_tree_format_row() (line 107 of /home/hoslot5/public_html/sites/all/modules/token/token.pages.inc).

This is on a clean D7.0 install with very minimal functionality enabled.

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

That would point to some module not providing proper token info via hook_token_info(). You don't have any other contrib modules enabled?

Starminder’s picture

Hi Dave - I was trying to get Pathauto and Filefield Paths working at the time. I can try them one at a time and see when it creeps in again.

AndrzejG’s picture

I have very similar issue.
Example: I have created a flag policz_nody and now came to the Flag management screens. Below are the warnings:
- series of 6 subsequent warnings:
Lokalizacja (localization) mysite/admin/structure/flags/manage/policz_nody
Odsyłający (referrer) mysite/admin/structure/flags
Wiadomość (message) Notice: Undefined index: name w token_asort_tokens() (linia 360 z /sites/all/modules/token/token.module).

- one warning (it is displayed in the management screen):
Lokalizacja mysite/admin/structure/flags/manage/policz_nody
Odsyłający mysite/admin/structure/flags
Wiadomość Warning: uasort() [function.uasort]: Array was modified by the user comparison function w token_get_info() (linia 328 z /sites/all/modules/token/token.module).

I have 8 test nodes, of which 4 nodes collected 5 flags in total.

As far as I remember, the same uasort() [function.uasort]: warning have been appearing in some relation to my User Portrait, and recently the Portrait corrupted (displayed only largest thumb size instead of smaller post and discussion thumbnails). I disabled User Portrait option and this warning disappeared. This info is based on my intuition and memory, so it can be irrelevant or inaccurate.

puya’s picture

I'm having the same problem after enabling pathauto.

udvranto’s picture

Me too...

dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Check your status report page for token problems. Likely a module is not providing correct information in hook_token_info().

Status: Fixed » Closed (fixed)

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