Page MenuHomePhabricator

Closed, ResolvedPublic


Author: ekompute

My <nowiki>[[Special:Statistics|{{NUMBEROFARTICLES}}]] </nowiki> gives a reading of 18,446,744,073,709,551,610. I have not been able to receive any concrete help, including my webhost and the various forums. I wonder whether I can get any assistance from this platform.

Version: 1.10.x
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:52 PM
bzimport set Reference to bz11220.
bzimport added a subscriber: Unknown Object (MLST).

This is what happens if there aren't any articles present, not even the Main Page. The software tries to subtract one (the Main Page) from the total of 0, but since this particular DB field can't handle negative numbers, it'll wrap around to the largest possible number it can handle, which is 2^64-1. Check that $wgContentNamespaces (in LocalSettings.php) isn't empty (for what it should be, see below), and create a page called "Main Page" with at least one wikilink on it. This should bring the total back to zero.

$wgContentNamespaces = array(NS_MAIN);

  • This bug has been marked as a duplicate of bug 4650 ***

robchur wrote:

The usual means to repair the table is to run maintenance/initStats.php from the command line.