Page MenuHomePhabricator

Moving a page lowers the number of articles on Special:Statistics
Closed, ResolvedPublic


Check the number of articles and total number of pages in Special:Statistics
Μove (rename) a page in main namespace.
Number of articles is minus 1. Number of pages is (correctly) +1 (the created redirect).
Every time you move an article, the number of articles goes -1. The expected is to be the same (except if moved to another namespace).

Reported and checked in elwiki.

Event Timeline

geraki created this task.Dec 30 2018, 5:20 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 30 2018, 5:20 PM
Aklapper renamed this task from Moving a page lowers the number of articles to Moving a page lowers the number of articles on Special:Statistics.Dec 31 2018, 8:20 PM
Aklapper edited projects, added MediaWiki-Special-pages; removed MediaWiki-General.

Also see T66333 for the past.

geraki added a comment.Jan 4 2019, 1:46 PM

Note: Not only in Special:Statistics but everywhare (the API, the magic word {{NUMBEROFARTICLES}})

Basically the change is done on table site_stats, so it is reflected everywhere...

Thuvack added a subscriber: Thuvack.EditedJul 28 2019, 6:54 PM

I have just found the same bug in, at first I thought it was because the page had no wikilink as described here. Then I experimented with a page that had more than 6 wikilinks, categories and references, the same thing happened, the article count decreased. Is this an active ticket for this bug, or should I post a new bug report?

debt added a subscriber: debt.Jul 29 2019, 7:11 PM
greg added subscribers: TTO, greg.Jul 29 2019, 7:17 PM

Also see T66333 for the past.

@TTO given your involvement (patch writing) for that past similar task, do you think you have an idea of what might be going wrong again?

Ijon awarded a token.Jul 30 2019, 3:30 PM
TTO added a comment.Aug 1 2019, 4:43 AM

It was five years ago, and the code has since been heavily refactored; I'm afraid I am not of any help here.

WDoranWMF triaged this task as High priority.Aug 6 2019, 6:20 PM

So, I've tried this on a couple of wikis and haven't seen it; is the problem related specifically to the language? It doesn't seem to occur in English. And ts uses Latin script (unlike el), so it might not be related to character set.

@EvanProdromou were you able to reproduce this on either elwiki or ts?

I was able to reproduce the problem in mediawiki-vagrant.

Change 530007 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/core@master] Check all slots in DerivedPadeDataUpdater::isCountable.

Change 530007 merged by jenkins-bot:
[mediawiki/core@master] Check all slots in DerivedPadeDataUpdater::isCountable.

CCicalese_WMF closed this task as Resolved.Apr 28 2020, 8:48 PM
CCicalese_WMF claimed this task.
CCicalese_WMF added a subscriber: CCicalese_WMF.

Marking as Resolved as it is in the Done column. Feel free to reopen if there is remaining work.