Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

user list shows a lot of duplicate users

horia_mhoria_m New
edited February 2011 in Vanilla 2.0 - 2.8
I just installed 2 days ago vanilla and your plugin.
The list of users shows duplicate users, so that instead of abut 7 it shows about 20.
can this be fixed?
(my version of the plugin is very recent)
thank you!


  • Options
    Noone around here?

    I checked the database, and there are no duplicate users there (in the "Users" table that i found). So, why is this happening?
  • Options
    I have also had this problem. I guess some people have just seen what it does and then just take the plugin out. :-/

    Gonna have a quick look now to see if I can actually fix anything. I'll post in a little while.
  • Options
    Found the issue. What the plugin does, and this is just a guess, but it looks through all the roles and then returns the names in each role. So, this means that if you have one user in two roles, it will return the user twice.

    This might be because you have some users listed as a member AND Admin, or Mod. Something like that.

    This really is a problem as it means a messy database with too many Roles. For the moment, just take the member role away from anyone that has a second role. That should fix it.
  • Options
    Just installed and found the same issue. I have all my users in two or more roles, so every single user is at least doubling up. That's no good.
  • Options
    @Gig: thank you for explaining the bug! I'll see if turning off some roles does not affect the functionality for those users.
  • Options
         $this->Users = $SQL
    ->Distinct() // add
    ->Join('UserRole r','u.UserID = r.UserID')

    $this->All_Users = $SQL
    ->Distinct() // add
    ->From('User u')
    ->Join('UserRole r', 'u.UserID = r.UserID')
  • Options
    thank you, yu_tang! That's great. I will use this code.
  • Options
    I tested it, and it works well now! Thank you again, yu_tang!
Sign In or Register to comment.