[wp-trac] [WordPress Trac] #61713: — no role for this site —

WordPress Trac noreply at wordpress.org
Tue Jul 23 00:29:39 UTC 2024


#61713: — no role for this site —
-------------------------------+------------------------------
 Reporter:  hamidsna           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.5.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by rajinsharwar):

 * keywords:   => reporter-feedback


Comment:

 That's weird! Can you please try to follow the below instructions to share
 more information about the issue @hamidsna?

 1. Clone your LIVE site or any site that's having the issue in a STAGING
 site.
 2. Enable WP DEBUG. Ensure that you do not have any debug.log file under
 your wp-content folder.
 3. In your code, navigate under wp-admin/includes/class-wp-users-list-
 table.php
 4. In the file, around line 244, you will notice a line like
 {{{
 if ( ! empty( $avail_roles['none'] ) ) {
 }}}
 5. Just above that, paste this line of code:

 {{{#!php
 error_log( print_r( $avail_roles, true ) );
 }}}
 6. Reload the WP Users page in your Admin Dashboard.
 7. A new wp-content/debug.log file will be created where you should see an
 array of users. Please attach your debug.log file here in this ticket.

 Thanks!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61713#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list