Page MenuHomePhabricator

Category count is incorrect
Closed, DuplicatePublic

Description

Author: mufka.wiki

Description:
I remember seeing that category counts can be slightly off because a member page might have been blanked and restored causing the page to temporarily drop out of the category. It seems that the count can be off for other unexplained reasons. As an example https://en.wikipedia.org/wiki/Category:Days_of_the_year usually shows about 344 member pages. The correct number is 366. There are not enough regular page blankings to account for the difference in the true count vs. the displayed count.


Version: unspecified
Severity: normal

Details

Reference
bz21230

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:51 PM
bzimport set Reference to bz21230.
bzimport added a subscriber: Unknown Object (MLST).

mufka.wiki wrote:

It appears that this problem may have been recently fixed.

Shows 365. Unless a day is missing, this is still open.

mufka.wiki wrote:

There are 366 (none missing) but the display is still 365. Something is still wrong. It knows the correct count. If you look at the two pages you see:
The following 200 pages are in this category, out of 365 total.
and
The following 166 pages are in this category, out of 365 total.
200 + 166 = 366.

Thehelpfulonewiki wrote:

This is very strange behaviour - it now shows 363 days, I don't think we've lost any days, but all the pages appear to be listed - maybe something's wrong with the category count?

I just came across the same bug here [[:no:Kategori:Trenger oppdatering]]

As of this writing, the category contains 252 articles, but the category page (and PAGESINCAT) says 251.

The two category pages says (translated to English):

  1. The following 200 pages are in this category, out of 251 total
  2. The following 52 pages are in this category, out of 251 total

Clearly 200 + 52 = 252, not 251. Counting category members using the API also results in 252.

I've even tried purging all the pages in the category, but the counter didn't change.

jayvdb set Security to None.