Title: Multisite bug
Last modified: November 6, 2017

---

# Multisite bug

 *  [mamedia](https://wordpress.org/support/users/mamedia/)
 * (@mamedia)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/multisite-bug-4/)
 * Hi guys,
 * I think I found a bug when using the plugin in a multisite environment:
    In line
   260 of the file wp-members/admin/users.php you’re creating an SQL statement to
   count the number of users with $wpdb->prefix. However in a multisite environment
   this is causing an error since $wpdb->prefix returns the prefix of the current
   blog and there not users table for every blog. So instead of $wpdb->prefix . “
   users” you should just use $wpdb->users.
 * Andreas

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/multisite-bug-4/#post-9660557)
 * Thanks – I’ll review and consider changing this in the next update.

Viewing 1 replies (of 1 total)

The topic ‘Multisite bug’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/multisite-bug-4/#post-9660557)
 * Status: not resolved