OpenWetWare:Software/Projects/User count bug  From OpenWetWare
< OpenWetWare:Software Revision as of 17:01, 16 November 2007 by
Bill Flanagan (Talk | contribs) Jump to: navigation, search
Site stats are maintained in a table, "site_stats".  The value
of site_stats currently (11/16/2007 4:21) is 3360 <correction:
3370 was the number. I checked the console log>  Running a
select command on the user table indicates the count is 3444.
site_stats.ss_users is updated by an instantce of the
SiteStatsUpdate class as follows:  $ssu - new SiteStatsUpdate(
0, 0, 0, 0, 1 );   The bit array corresponds to the following:
$views; $edits; $good; $pages; $users;  The only call that
invokes SiteStatsUpdate is SpecialUserlogin.php when a new user
is created.  Since UMS does not use SpecialUserlogin.php to
create users, the number may not be getting incremented
correctly.  I added a call to SiteStatsUpdate for a new user
from UMS. Upon rechecking the database after several more users
were added, the numbers were as follows: