Page MenuHomePhabricator

categoryTree sometimes says "no subcategories" even when they exist
Open, HighPublic

Assigned To
None
Authored By
Bennylin
Mar 6 2014, 4:45 PM
Referenced Files
F37114743: image.png
Jun 23 2023, 3:15 PM
F37114718: image.png
Jun 23 2023, 3:05 PM
F37114715: image.png
Jun 23 2023, 3:05 PM
F37114713: image.png
Jun 23 2023, 3:05 PM
F37114711: image.png
Jun 23 2023, 3:05 PM
F37114709: image.png
Jun 23 2023, 3:05 PM
F13322: categorytree2.jpg
Nov 22 2014, 3:05 AM

Description

categorytree unexpected behavior

Case: https://id.wiktionary.org/wiki/Pengguna:Bennylin/Categorytree2?uselang=en

As you can see in the image, the subcategories were missing in some of the categories. Probably related to 59798


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=59798

Attached:

categorytree.jpg (701×687 px, 87 KB)

Details

Reference
bz62325

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:05 AM
bzimport set Reference to bz62325.
bzimport added a subscriber: Unknown Object (MLST).

Also didn't work in category page, so maybe this is not CategoryTree's fault after all.

https://id.wiktionary.org/wiki/Kategori:Kata_bahasa_Indonesia#sub

Created attachment 14757
didn't work in the three category shown, but work for the other categories

Attached:

categorytree2.jpg (343×1 px, 42 KB)

Revisiting this high priority bug 9 years later:

Currently it behave differently (but still incorrect):

image.png (873×523 px, 29 KB)

and I think I found the bug. Consider https://id.wiktionary.org/wiki/Kategori:id:Kata_berimbuhan that has 129 subcategories, but only displayed 2 in the category tree

image.png (148×248 px, 3 KB)

The two categories (https://id.wiktionary.org/wiki/Kategori:id:Adverbia_(-nya) and https://id.wiktionary.org/wiki/Kategori:id:Adverbia_(ke-an)) were actually incorrectly categorized to https://id.wiktionary.org/wiki/Kategori:Kata_berimbuhan (instead of Kategori:id:Kata_berimbuhan)

image.png (781×646 px, 28 KB)

image.png (335×839 px, 17 KB)

The same with the subcategories shown for https://id.wiktionary.org/wiki/Kategori:id:Turunan_kata (8.184 subcategories)

image.png (162×367 px, 5 KB)

the four subcats shown there are actually subcats for https://id.wiktionary.org/wiki/Kategori:Turunan_kata (again, without the id: prefix)

Hopefully someone can fix this bug. (IMO this is a low/medium priority bug)

Created attachment 14757
didn't work in the three category shown, but work for the other categories

Attached:

categorytree2.jpg (343×1 px, 42 KB)

Updated screenshot:

image.png (673×957 px, 52 KB)

Our Wiktionary uses a lot of prefixed categories, therefore, according to the FAQ in the link above, the solution is to change the site settings.

Try to fix this by adding this code to LocalSettings.php: $wgCategoryTreeDefaultOptions['namespaces'] = [ 0, NS_CATEGORY, NS_FILE ];

Can id.wiktionary community ask to change that site settings in order to fix this bug?