Title: Possible bug in user count, WordPress Admin
Last modified: August 19, 2016

---

# Possible bug in user count, WordPress Admin

 *  [hajejan](https://wordpress.org/support/users/hajejan/)
 * (@hajejan)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/possible-bug-in-user-count-wordpress-admin/)
 * I’ve just noticed I’m seeing a strange number in my number of users in /wp-admin/
   users.php
 * It reports I have:
 * All (17) | Administrator (16) | Contributor (1)
 * but the list only shows 1 contributor and 3 administrators (I created all these
   user accounts, so there’s no security breach there)
 * I’ve checked the database, and there are only 4 users in the [prefix]_users table.
 * Where do these numbers come from, and why might they be miscounting?

Viewing 1 replies (of 1 total)

 *  [gab.ro](https://wordpress.org/support/users/gabro/)
 * (@gabro)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/possible-bug-in-user-count-wordpress-admin/#post-1803053)
 * The user count you mention uses a function called `count_users`, located in `
   wp-includes/user.php`.
 * If you take a look at the function’s code, you’ll see some comments there. It
   says that the function:
 * >  * Assumes there are neither duplicated nor orphaned capabilities meta_values.
   > *
   > Assumes role names are unique phrases.
 * I would bet that one or more of the mentioned assumptions were not met in you
   case.
 * I also experienced this issue and found it to be caused by the fact that I deleted
   some users directly from the database, omitting to also delete their meta_values.
   Orphaned meta_values it’s called, apparently.

Viewing 1 replies (of 1 total)

The topic ‘Possible bug in user count, WordPress Admin’ is closed to new replies.

## Tags

 * [admin-panel](https://wordpress.org/support/topic-tag/admin-panel/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [gab.ro](https://wordpress.org/support/users/gabro/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/possible-bug-in-user-count-wordpress-admin/#post-1803053)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
