Topic on Project:Support desk

[RESOLVED] Category displaying "only the following" even for more than 1 item!

Phantomsteve (talkcontribs)
MediaWiki 1.22.1
PHP 5.3.27 (cgi-fcgi)
MySQL 5.1.72-cll

When I look at a category, it shows "only" no matter how many items are listed, for example:


This category has only the following subcategory.

Pages in category ‘My-Category’

This category contains only the following page.

Is there a setting that I need to change (or may have accidentally changed) to make sure it says "the following subcategories/pages" when there are more than one (it correctly show the "only" message for a single item)?

MarkAHershberger (talkcontribs)
Phantomsteve (talkcontribs)

The message is correct on other wikis that I tried - it seems to be just mine!

The two -count messages are both exactly as shown in the file, so I'm not sure why it's not working on my wiki!

Unless there are others who are having the problem, I think it's a problem with my set-up rather than a bug!

Ricordisamoa (talkcontribs)

Did you create MediaWiki:Category-subcat-count or MediaWiki:Category-article-count on your wiki? Then delete them.

Bawolff (talkcontribs)

Go to (replacing My-category with the cat name, and with the url). What sort of counts are shown for that category.

It sounds like there is a mismatch between how many articles are actually in that category and how many MediaWiki thinks there is. However if its a small category (<200 members) this shouldn't happen as inconsistencies are checked for small categories. And even in a big category it should output category-subcat-count-limited in a situation like this.

Do you have any category related extensions installed (e.g. CategoryTree) [CategoryTree shouldn't cause this, but good to collect details]

If your wiki is public, a link to it would be helpful.

Phantomsteve (talkcontribs)

Thanks for the help and sugegstions so far, everyone - it is appreciated! This is only a little niggle, but it annoys me, and I'd prefer to get it sorted!

1. I have not created the system messages, it uses the default

2. A link to the wiki, going to an example category that isn't displaying properly, is here - do you need to be able to log in, or can you do it as is?

3. The only category-related addition is HotCat

4. The link you suggested trying ( shows: Comic People‏‎ (71 member)

Ricordisamoa (talkcontribs)

It looks like the 'plural' function is completely broken on your wiki: should return '$1 days and my bananas' but it returns '2 day and my banana' instead.

Try looking at your i18n/L10n settings.

Bawolff (talkcontribs)
Phantomsteve (talkcontribs)

Thanks - rebuilding the cache worked!

Thanks everyone for their help, I'll marked this as resolved!

Reply to "[RESOLVED] Category displaying "only the following" even for more than 1 item!"