Uncaught TypeError when editing user with custom role
-
I’m seeing the following fatal error on PHP 8.0 when attempting to edit a user with multiple custom roles assigned via https://ww.wp.xz.cn/plugins/members/ Deactivating BNFW allows me to edit users as expected.
PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in wp-includes/plugin.php:176 Stack trace: #0 wp-content/plugins/bnfw/bnfw.php(1184): apply_filters() #1 [internal function]: BNFW->bnfw_members_sanitize_role() #2 wp-content/plugins/bnfw/bnfw.php(1130): array_map() #3 wp-includes/class-wp-hook.php(309): BNFW->user_role_added() #4 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 wp-includes/plugin.php(476): WP_Hook->do_action() #6 wp-includes/user.php(2432): do_action() #7 wp-includes/user.php(2553): wp_insert_user() #8 wp-admin/includes/user.php(227): wp_update_user() #9 wp-admin/user-edit.php(167): edit_user() #10 {main} thrown in wp-includes/plugin.php on line 176
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Uncaught TypeError when editing user with custom role’ is closed to new replies.