Page MenuHomePhabricator

Deprecated: Use of MediaWiki\Output\OutputPage::setCategoryLinks was deprecated [Called from MediaWiki\Specials\SpecialExpandTemplates::showHtmlPreview]
Closed, ResolvedPublic

Description

I see the following warning locally when submitting the form on Special:ExpandTemplates:

Deprecated: Use of MediaWiki\Output\OutputPage::setCategoryLinks was deprecated in MediaWiki 1.43. [Called from MediaWiki\Specials\SpecialExpandTemplates::showHtmlPreview in /var/www/html/w/includes/specials/SpecialExpandTemplates.php at line 280] in /var/www/html/w/includes/debug/MWDebug.php on line 385

It was deprecated in rMW3739467256f3: Deprecate OutputPage::setCategoryLinks() for T373480: Display categories in sorted order by default.

Event Timeline

dduvall subscribed.

Spotted this during 1.43.0-wmf.22 deployment today. It seems to have occurred for wmf.21 as well. I won't block train on it since it predates this week's branch, but it would be great to get this fixed soon to reduce log spam.

Change #1072275 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@master] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Change #1072305 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@wmf/1.43.0-wmf.22] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Change #1072306 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@wmf/1.43.0-wmf.21] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Change #1072275 merged by jenkins-bot:

[mediawiki/core@master] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Change #1072305 merged by jenkins-bot:

[mediawiki/core@wmf/1.43.0-wmf.22] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Change #1072306 merged by jenkins-bot:

[mediawiki/core@wmf/1.43.0-wmf.21] SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks()

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

Mentioned in SAL (#wikimedia-operations) [2024-09-11T22:38:56Z] <jforrester@deploy1003> Started scap sync-world: Backport for [[gerrit:1072305|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]], [[gerrit:1072306|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]]

Mentioned in SAL (#wikimedia-operations) [2024-09-11T22:41:03Z] <jforrester@deploy1003> jforrester: Backport for [[gerrit:1072305|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]], [[gerrit:1072306|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-09-11T22:46:24Z] <jforrester@deploy1003> Finished scap sync-world: Backport for [[gerrit:1072305|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]], [[gerrit:1072306|SpecialExpandTemplates: Replace use of deprecated OutputPage::addCategoryLinks() (T373830)]] (duration: 07m 27s)