Fatal error on user switching
Replies: 0
Hi there,
User switching is throwing a fatal error:
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/mysite-2023/webapps/mysite/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/users/class-user-switching.php:530\nStack trace:\n#0 /home/mysite-2023/webapps/mysite/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/users/class-user-switching.php(530): method_exists()\n#1 /home/mysite-2023/webapps/mysite/wp-content/plugins/wpfront-user-role-editor-personal-pro/includes/users/class-user-switching.php(244): WPFront\URE\User_Switching\WPFront_User_Role_Editor_User_Switching->forget_woocommerce_session()\n#2 /home/mysite-2023/webapps/mysite/wp-includes/class-wp-hook.php(324): WPFront\URE\User_Switching\WPFront_User_Role_Editor_User_Switching->switch_user()\n#3 /home/mysite-2023/webapps/mysite/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#4 /home/docns…', revoke_role_2
Looks like the same error as this thread > https://wordpress.org/support/topic/error-when-selecting-user-to-switch-2/
Also in this thread it was discussed about being able to remove the User Switching option > https://wordpress.org/support/topic/hide-or-remove-user-switching-option-inside-edit-user/
The issue with the solution provided here is that you cannot edit the Administrator permissions, so it can’t be disabled for the admin. It would be great to be able to disable this globally, as it breaks the functionality of other user switching plugins, making user switching impossible for admins.
این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنیدمشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس