Page MenuHomePhabricator

categorytree does not show up in sidebar with vector skin in mediawiki 1.35.1
Closed, DuplicatePublicBUG REPORT

Description

with:

$wgCategoryTreeSidebarRoot = "categories";

in LocalSettings.php, categorytree does not show up in the sidebar. It should, however, as advertised here: https://www.mediawiki.org/wiki/Extension:CategoryTree#Using_CategoryTree_in_the_Sidebar . It does work fine with the timeless skin.

Adding $wgCategoryTreeForceHeaders = true; does not help. mediawiki is logging errors such as this:

Got error 'PHP message: PHP Deprecated:  Use of `content` field in portal categorytree-portlet must be array.Previously it could be a string but this is no longer supported. was deprecated in MediaWiki 1.35.0. [Called from VectorTemplate::getSkinData in /var/www/wiki/skins/Vector/includes/VectorTemplate.php at line 167] in /var/www/wiki/includes/debug/MWDebug.php on line 430', referer: https://whatever.wiki/index.php?title=Category:It

Event Timeline

fwiw: it works as expected - aka: the category tree shows up in the sidebar - when using vector from mw 1.34 (which you can get from here: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/Vector/+/refs/heads/REL1_34 ) with mw 1.35.1. Needless to say, this is an evil hack. However, a core extension and the default skin not doing the right thing isn't really what you would expect, either …

Thank you very much for looking into this, I am looking forward for the fix.

Jdlrobson added a subscriber: Krisssde.
Jdlrobson subscribed.

Am pretty sure this is a duplicate of T272705: Vector Skin does not show CategoryTree portlet in sidebar

This needs to be fixed in CategoryTree extension