Title: Switch user error
Last modified: December 20, 2022

---

# Switch user error

 *  Resolved [central4all](https://wordpress.org/support/users/central4allgmailcom/)
 * (@central4allgmailcom)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/)
 * Every time i Switch user i get critical error, it switches the user but always
   gives error

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/#post-16306355)
 * What’s the error?
 *  Thread Starter [central4all](https://wordpress.org/support/users/central4allgmailcom/)
 * (@central4allgmailcom)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/#post-16306616)
 * This is the error
 * PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback)
   must be a valid callback, function “banhammer_remove_query_args” not found or
   invalid function name in /home/admin/domains/seeme.baby/public_html/wp-includes/
   class-wp-hook.php:308
 * With banhammer disabled every this is fine, bit i cant block the spammers now….
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/#post-16306753)
 * Thanks. This looks like something you’ll need to report to the author of the 
   banhammer plugin as it looks like it’s hooking in a filter that doesn’t exist.
 * Best of luck!
 *  Thread Starter [central4all](https://wordpress.org/support/users/central4allgmailcom/)
 * (@central4allgmailcom)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/#post-16306765)
 * Thank you

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

The topic ‘Switch user error’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [central4all](https://wordpress.org/support/users/central4allgmailcom/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/switch-user-error/#post-16306765)
 * Status: resolved