• Resolved bcorey

    (@bcorey)


    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 252

    This appears to be caused by the call to members_get_role('none') returning false instead of an object as expected.

    To reproduce:

    1. Create a new user from the WordPress admin and deselect all the checkboxes under “User Roles”.
    2. Load the “Has Users” view at wp-admin/admin.php?page=roles&view=active.
    3. 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).

    • This topic was modified 2 years, 7 months ago by bcorey.
Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @bcorey

    Thank you for reporting this. I’ll pass this to our developer, but please keep in mind that users in WordPress should have at least one Subscriber role selected and you shouldn’t leave users without any roles.

    Best

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error for role “none” in “Has Users” view’ is closed to new replies.