Support » Plugin: Author Avatars List » Warning: Array was modified by the user comparison function
3 years, 12 months ago
Hi, I’m getting this warning and I don’t know why. It was working just fine a couple of weeks ago.
Warning: usort() [function.usort]: Array was modified by the user comparison function in cookingblondes.nl/public_html/wp-content/plugins/author-avatars/lib/UserList.class.php on line 644
I went to that file but all it says is this on that line. It’s not anything I’ve modified:
usort($users, array($this, '_user_cmp_postcount'));
Any ideas? Thanks!
3 years, 11 months ago
I am sorry I don’t know what the problem is here
usort re-oreders the array this is done with the function _user_cmp_postcount which looks at the number of post and returns the diff
can you try a different sort and see if that also errors
3 years, 10 months ago
Hello Pbearne, thank you for your response. I have been terribly busy lately, but now I have time to fix this issue. I’m sorry but don’t know what you mean by trying a different sort. I did change the stylesheet a little bit.
I have found that sometimes usort will return an error on some systems so I have changed them in the next version to @usort() which does not return the error
Sweet, thanks! I will be waiting for that update.