I found the following warnings in the error log of my website:

Error 1:
Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 523 of /home/jobspls/public_html/sites/all/modules/token/token.module).

Error 2:
Warning: strnatcmp() expects parameter 1 to be string, array given in token_asort_tokens() (line 565 of /home/jobspls/public_html/sites/all/modules/token/token.module).

Comments

drupa11y’s picture

I get the similar errors:

Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 569 of /Applications/MAMP/htdocs/Testing/drupal-7.x/sites/all/modules/token/token.module).
Warning: strnatcmp() expects parameter 1 to be string, array given in token_asort_tokens() (line 569 of /Applications/MAMP/htdocs/Testing/drupal-7.x/sites/all/modules/token/token.module).
Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 527 of /Applications/MAMP/htdocs/Testing/drupal-7.x/sites/all/modules/token/token.module).

Also a closed issue discusses this: https://drupal.org/node/1454642

I guess another token module causes this troubles, in my case "entity token" or "webform token". After disabling both the warnings are gone.

vishalgala’s picture

Issue summary: View changes

Check the status in the following link (admin/reports/status). You will come to know which are the tokens used and at fault who are creating the problem. As there is some conflict happening where same tokens is getting created twice.