Jump to content

Topic on Project:Support desk/Flow

{{NUMBEROFACTIVEUSERS}} remains stuck at 0

5
Summary by AhmadF.Cheema

Not really resolved; found temporary solution; probably a bug; reported at phabricator T140079.

AhmadF.Cheema (talkcontribs)

The following was reported on phabricator, but was apparently recommended to be brought here too, so here goes (in case anyone has a possible solution):

The magic word {{NUMBEROFACTIVEUSERS}} remains stuck at 0.

This can be seen in Special:Statistics, Special:CreateAccount and wherever the magic word is included in a page.

The Special:ActiveUsers page, however, works fine and lists the active users.

Have already tried unsuccessfully:

initSiteStats.php --update

MediaWiki 1.28.0-alpha (5726c9c) 04:18, 12 July 2016

PHP 5.6.22 (cgi-fcgi)

MySQL 5.6.30-log

ICU 50.1.2

Lua 5.1.5

Ciencia Al Poder (talkcontribs)

The list of active users is stored in the querycachetwo table, which is populated from the Job queue. It may be that the job queue on your wiki is not being run. Look at the Manual:Job queue page to see possible problems and solutions.

AhmadF.Cheema (talkcontribs)

No, the jobs are complete (i.e. 0). I run cron jobs to make sure.

Another thing I just noticed is that the api page (.../w/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm) used to find out how many jobs are remaining, here too the "activeusers" is 0.

The active users have been stuck at 0, since the Wiki was setup, i.e. even when one sysop account was active.

AhmadF.Cheema (talkcontribs)

Solved (kind of).

  • Just tried a new test install:
MediaWiki 1.28.0-alpha (b8804f6)
  • T22017 indicated a temporary fix using: php maintenance/initStats.php --active --update
  • Because of the change in the maintenance .php file, used the following command in SSH:

php maintenance/initSiteStats.php --active

  • This fixed the issue.
  • However, it should be pointed out that I had previously run multiple times:

php maintenance/initSiteStats.php --update

  • which didn't help. It did update the other variables (like number of edits etc.) but not the number of active users.

  • Created another test account, to see if the number was updating now automatically or not.
    • It wasn't. Had to run initSiteStats.php --active again to update the value.
    • Tested again to repeat the results and make sure there wasn't a jobs backlog problem.
    • There wasn't. The issue is persistent and unable to be fixed without running: initSiteStats.php --active.
Ciencia Al Poder (talkcontribs)

Yeah, that looks like a bug