I keep getting this error every time i go to the config page or clear the cache, I do not see any thing in my error reports. Is it it the token module or a module that uses the token module?

The only thing I could find in search was not helpful - http://drupal.org/node/1067914

Can any one point me in the right direction?

Error:

Notice: Array to string conversion in token_asort_tokens() (line 521 of /home5/*****/public_html/sites/all/modules/token/token.module).
Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 479 of /home5/*****/public_html/sites/all/modules/token/token.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zastapmnie’s picture

I have identical problem
help!

luisasasi’s picture

I have identical problem
help!
Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (linea 565 di /web/htdocs/www.xxxxxx.it/home/sites/all/modules/token/token.module).
Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (linea 565 di /web/htdocs/www.www.xxxxxx.it.it/home/sites/all/modules/token/token.module).
Warning: uasort(): Array was modified by the user comparison function in token_get_info() (linea 523 di /web/htdocs/www.www.xxxxxx.it.it/home/sites/all/modules/token/token.module).

trumanru’s picture

Version: 7.x-1.1 » 7.x-1.4

Have same error after updated to 7.x-1.4

laur3ntlapo’s picture

I have the dame error

bensnyder’s picture

Having this problem too

mgifford’s picture

I got the same error. Putting in link to similar D6 issue that came up with google search.
#922430: Undefined Index Warnings

GiorgosK’s picture

crossreferencing another realization of this notice #1871924: token_asort_tokens notices after update RC4 to 2.0

makokis’s picture

same error with 7.18 drupal version and KC 2.0

Infinitee’s picture

Ditto... 7.18 Drupal and Kickstart 2.0

xiukun.zhou’s picture

xiukun.zhou’s picture

Status: Active » Needs review
FileSize
556 bytes
stopbox’s picture

#11 Fixed the problem for me.

Dave Reid’s picture

Status: Needs review » Closed (won't fix)

This masks problems with modules providing conflicting tokens, which then get merged as arrays due to array_merge_recursive() in module_invoke_all(). If modules are not implementing the APIs correctly, or properly checking that they're the only ones providing a token, then it's a bug in those modules. This is why I implemented the debugging on admin/reports/status to help you show which offending tokens are causing these errors.

j_byrd’s picture

Issue summary: View changes

So, how do I turn on the debugging on admin/reports/status. I've had the same warnings many times and have yet to be able to see a report on conflicting tokens on the Status page.