Page MenuHomePhabricator

update statistic/count tables on newly created wikis
Closed, ResolvedPublic

Description

vepwiki was just imported. Statistics are broken after import (as always). So please run two maintanace scripts:

php updateArticleCount.php vepwiki --update
php refreshCategoryCounts.php vepwiki


Version: unspecified
Severity: normal

Details

Reference
bz34184

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 12:10 AM
bzimport set Reference to bz34184.
bzimport added a subscriber: Unknown Object (MLST).
Merl created this task.Feb 3 2012, 10:30 AM

Idem needed for the new pnbwiktionary.

Dzahn added a comment.Feb 3 2012, 1:52 PM

mwscript updateArticleCount.php vepwiki --update
Counting articles...found 0.
Updating site statistics table... done.

mwscript updateArticleCount.php pnbwiktionary --update
Counting articles...found 0.
Updating site statistics table... done.

Dzahn added a comment.Feb 3 2012, 1:54 PM

should be fixed.

There are articles on the wiki so it's not possible that there are 0 found. Maybe something went wrong with the script.

And did you also run refreshCategoryCounts.php?

Dzahn added a comment.Feb 3 2012, 2:15 PM
  • refreshCategoryCounts.php currently does not exist as a maintenance script (uwing mwscript)
  • the maintenance script is on bug 18488 / added in r66140 and reverted
  • SiteStatsInit is currently patched out due to an issue on wikimedia.pl yesterday, this should be the reason we get the 0 article count

Afraid it needs to wait a bit until the SiteStatsInit situation clears up.

What's the current situation here?
Meanwhile, such a maintenance is also needed for the new lezwiki, bewikisource, guwikisource and slwikiversity.

Reedy added a comment.May 10 2012, 7:35 PM

reedy@fenari:/home/wikipedia/common/php-1.20wmf2$ mwscript updateArticleCount.php lezwiki --update
Counting articles...found 725.
Updating site statistics table... done.
reedy@fenari:/home/wikipedia/common/php-1.20wmf2$ mwscript updateArticleCount.php bewikisource --update
Counting articles...found 1507.
Updating site statistics table... done.
reedy@fenari:/home/wikipedia/common/php-1.20wmf2$ mwscript updateArticleCount.php guwikisource --update
Counting articles...found 507.
Updating site statistics table... done.
reedy@fenari:/home/wikipedia/common/php-1.20wmf2$ mwscript updateArticleCount.php slwikiversity --update
Counting articles...found 256.
Updating site statistics table... done.