After enabling this module and checking the checkbox "Enable sort by role weights", warning message appears on the user roles page:
warning: uksort(): Array was modified by the user comparison function in ...sites/all/modules/role_weights/role_weights.module on line 161.
Everything is fine but
I'm using PHP Version 5.3.2-1ubuntu4.1, Drupal 6.16.
Comments
Comment #1
anvar.validi commentedHere's the code:
Comment #2
pfaocleCan't reproduce. Please re-open if necessary.
Comment #3
pfaocleError occurs on 7.x-1.x-dev
Comment #4
smits.smiling@gmail.com commentedSame Problem for version 7.x-1.x-dev. Any solution?
Comment #5
pfaocle@smits.smiling@gmail.com - could you please try the patch at https://www.drupal.org/node/2293595#comment-9571967
Comment #6
pfaoclePlease test on latest 7.x-1.x-dev branch, containing http://cgit.drupalcode.org/role_weights/commit/?id=41457df
See #2293595: Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 575 of....
Comment #7
pfaocleComment #8
pfaocle