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

WordPress Trac noreply at wordpress.org
Tue Jul 23 17:35:30 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:
-------------------------------+------------------------------

Comment (by hamidsna):

 Replying to [comment:3 rajinsharwar]:
 > 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!

 I added the code you sent, it did what you said, the log file is created,
 but there is nothing in it

 https://i.ibb.co/XjxW3PT/44.jpg

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


More information about the wp-trac mailing list