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).
Comment | File | Size | Author |
---|---|---|---|
#11 | token-token_asort_tokens-1712336.patch | 556 bytes | xiukun.zhou |
#10 | token-token_asort_tokens-1712336.patch | 502 bytes | xiukun.zhou |
Comments
Comment #1
zastapmnie CreditAttribution: zastapmnie commentedI have identical problem
help!
Comment #2
luisasasi CreditAttribution: luisasasi commentedI 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).
Comment #3
trumanru CreditAttribution: trumanru commentedHave same error after updated to 7.x-1.4
Comment #4
laur3ntlapo CreditAttribution: laur3ntlapo commentedI have the dame error
Comment #5
bensnyder CreditAttribution: bensnyder commentedHaving this problem too
Comment #6
mgiffordI got the same error. Putting in link to similar D6 issue that came up with google search.
#922430: Undefined Index Warnings
Comment #7
GiorgosKcrossreferencing another realization of this notice #1871924: token_asort_tokens notices after update RC4 to 2.0
Comment #8
makokis CreditAttribution: makokis commentedsame error with 7.18 drupal version and KC 2.0
Comment #9
Infinitee CreditAttribution: Infinitee commentedDitto... 7.18 Drupal and Kickstart 2.0
Comment #10
xiukun.zhou CreditAttribution: xiukun.zhou commentedComment #11
xiukun.zhou CreditAttribution: xiukun.zhou commentedComment #12
stopbox CreditAttribution: stopbox commented#11 Fixed the problem for me.
Comment #13
Dave ReidThis 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.
Comment #14
j_byrd CreditAttribution: j_byrd commentedSo, 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.