Make WordPress Core

Opened 8 weeks ago

Closed 8 weeks ago

#63129 closed defect (bug) (duplicate)

Fatal Error when Bulk Changing User Roles to "No Role for This Site"

Reported by: soyebsalar's profile soyebsalar Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7.2
Component: Users Keywords: needs-testing needs-patch
Focuses: administration Cc:

Description

https://prnt.sc/TZcKMrtCr9Y8
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

Attachments (2)

Users-‹-Wordpress-Core-—-WordPress.png (116.1 KB) - added by soyebsalar 8 weeks ago.
WordPress-›-Error.png (96.5 KB) - added by soyebsalar 8 weeks ago.

Download all attachments as: .zip

Change History (3)

#1 @jorbin
8 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This issue is already being tracked in #63068.

Note: See TracTickets for help on using tickets.