Title: Error in admin users.php pages multisite
Last modified: June 25, 2019

---

# Error in admin users.php pages multisite

 *  Resolved [edemir206](https://wordpress.org/support/users/edemir206/)
 * (@edemir206)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-admin-users-php-pages-multisite/)
 * The new version of your plugin is giving this error when acessing the page “users.
   php” on a large multisite installation.
 * The user list is not displayed.
 *     ```
       2019/06/25 15:59:32 [error] 23725#23725: *13631 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to user_switching::filter_user_has_cap() must be of the type array, null given, called in /var/www/html/wp-includes/class-wp-hook.php on line 286 and defined in /var/www/html/wp-content/plugins/user-switching/user-switching.php:846
       Stack trace:
       #0 /var/www/html/wp-includes/class-wp-hook.php(286): user_switching->filter_user_has_cap(NULL, Array, Array, Object(WP_User))
       #1 /var/www/html/wp-includes/plugin.php(208): WP_Hook->apply_filters(NULL, Array)
       #2 /var/www/html/wp-includes/class-wp-user.php(768): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User))
       #3 [internal function]: WP_User->has_cap('wf2fa_activate_...', 'wf2fa_activate_...')
       #4 /var/www/html/wp-content/plugins/wordfence/modules/login-security/classes/controller/users.php(193): call_user_func_array(Array, Array)
       #5 /var/www/html/wp-content/plugins/wordfence/modules/login-security/classes/controller/users.php(168): WordfenceLS\Controller_Users->_user_can_f" while reading response header from upstream, client:  server: clone.ufsm.br, request: "GET /site/wp-admin/users.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "clone.ufsm.br", referrer: "https://site.dev/wp-admin/users.php"
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-admin-users-php-pages-multisite/#post-11671903)
 * Thanks for the report.
 * Does the problem still occur with your other plugins deactivated? If null is 
   being passed in to that parameter then that sounds like a bug caused by another
   plugin.
 * I see Wordfence in that stack trace, you might want to try deactivating that 
   first.
 *  Thread Starter [edemir206](https://wordpress.org/support/users/edemir206/)
 * (@edemir206)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-admin-users-php-pages-multisite/#post-11671936)
 * Sorry,
 * It was my mistake, I submitted a faulty commit into my auth plugin.
 * Thanks for the fast response.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error in admin users.php pages multisite’ is closed to new replies.

 * ![](https://ps.w.org/user-switching/assets/icon.svg?rev=3193956)
 * [User Switching](https://wordpress.org/plugins/user-switching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-switching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-switching/)
 * [Active Topics](https://wordpress.org/support/plugin/user-switching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-switching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-switching/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [edemir206](https://wordpress.org/support/users/edemir206/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/error-in-admin-users-php-pages-multisite/#post-11671936)
 * Status: resolved