[wp-trac] [WordPress Trac] #63129: Fatal Error when Bulk Changing User Roles to "No Role for This Site"
WordPress Trac
noreply at wordpress.org
Wed Mar 19 17:37:06 UTC 2025
#63129: Fatal Error when Bulk Changing User Roles to "No Role for This Site"
----------------------------+---------------------------------------
Reporter: soyebsalar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 6.7.2
Severity: normal | Keywords: needs-testing needs-patch
Focuses: administration |
----------------------------+---------------------------------------
[[Image(https://prnt.sc/TZcKMrtCr9Y8)]]
[[Image(https://prnt.sc/Lm9sifkA2qzU)]]
When bulk changing all users, including the admin, to "No Role for This
Site," a fatal error occurs due to a call to has_cap() on a null object.
Steps to Reproduce:
Go to Dashboard → Users.
Bulk select all users, including the admin.
Select "No Role for This Site" from the Change role to… dropdown.
Click Change.
Observe the fatal error:Fatal error: Call to a member function
has_cap() on null in https://www.yoursite.com/wp-admin/users.php on line
148
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63129>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list