[wp-trac] [WordPress Trac] #55890: Option 'user_count' not initalized or updated on single sites

WordPress Trac noreply at wordpress.org
Tue Jun 7 15:31:37 UTC 2022


#55890: Option 'user_count' not initalized or updated on single sites
--------------------------+---------------------
 Reporter:  knutsp        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0.1
Component:  Users         |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by knutsp):

 Replying to [comment:12 spacedmonkey]:
 > - Is your instance of WordPress multisite or single site.

 Single sites. This ticket is specifically reported for single site, see
 summary.

 > - Has the database upgrade been run after upgrading to 6.0?

 No reason not to think so, as no specific task for single sites.

 > - Are scheduled events disabled on your site? Or are they run in a
 special way?

 Nope. Default, no CRON constants or plugins.

 > As the user count is run on database upgrade / scheduled event, then
 seems unlikely it would ever be -1.

 Well, it shows -1 on Site Health, confirmed by inspecting database, the
 option doesn't exist.

 By adding a user, or sites that have had user registrations, the number
 shown is correct.

 My sites have a lot of plugins, except my testing site for alpha/beta (now
 WP 6.1-alpha) with zero plugins. This one also showed -1 until I added a
 user.

 My sites were all updated to major automatically by `WP_AUTO_UPDATE_CORE`
 = true.

 I expected others to confirm this.

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


More information about the wp-trac mailing list