Fatal error for role “none” in “Has Users” view
-
Members will trigger a fatal error in the “Has Users” view if there are any users with the role “none”. This appears to be the case in single and multisite.
The error is: Fatal error: Uncaught Error: Call to a member function get() on bool
in […]/wp-content/plugins/members/admin/class-role-list-table.php on line 252This appears to be caused by the call to
members_get_role('none')
returning false instead of an object as expected.To reproduce:
- Create a new user from the WordPress admin and deselect all the checkboxes under “User Roles”.
- Load the “Has Users” view at
wp-admin/admin.php?page=roles&view=active
. - Members will cause a fatal error on attempting to show the “none” role in the table.
This appears to be an old bug, appearing in Members as far back as 2.1.0 and affecting the latest version of Members (3.2.1).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error for role “none” in “Has Users” view’ is closed to new replies.