Page MenuHomePhabricator

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

Description

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

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.

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...

I have just found the same bug in ts.wikipedia.org, 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?

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?

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

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.

https://gerrit.wikimedia.org/r/530007

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

https://gerrit.wikimedia.org/r/530007

CCicalese_WMF claimed this task.
CCicalese_WMF subscribed.

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