PHP Fatal error
-
Hello, I’ve used the plugin for years, and it’s great. Wondering if you can take a look at the following error that seems to be related to the plugin and decipher what may be going on?
Some of the pages on our site were erroring out and it seems to be related to this error. I disabled the User Switching plugin and that seems to fix the error. Any thoughts on what could be going on here? Please let me know if I can provide any more info. Thanks for your help and a great plugin!
PHP Fatal error: Uncaught TypeError: Argument 1 passed to user_switching::switch_to_url() must be an instance of WP_User, instance of stdClass given, called in /nas/content/live/eremedia/wp-content/plugins/user-switching/user-switching.php on line 486 and defined in /nas/content/live/eremedia/wp-content/plugins/user-switching/user-switching.php:696\nStack trace:\n#0 /nas/content/live/eremedia/wp-content/plugins/user-switching/user-switching.php(486): user_switching::switch_to_url(Object(stdClass))\n#1 [internal function]: user_switching->action_admin_bar_menu(Object(WP_Admin_Bar))\n#2 /nas/content/live/eremedia/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)\n#3 /nas/content/live/eremedia/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#4 /nas/content/live/eremedia/wp-includes/plugin.php(531): WP_Hook->do_action(Array)\n#5 /nas/content/live/eremedia/wp-includes/admin-bar.php(86): do_action_ref_array('admin_bar_menu', Array)\n#6 [internal function]: wp_admin_bar_render('')\n#7 /nas/conten in /nas/content/live/eremedia/wp-content/plugins/user-switching/user-switching.php on line 696
The topic ‘PHP Fatal error’ is closed to new replies.