Page MenuHomePhabricator

[BUG] Wikibase LocalMedia use of deprecated function in MW 1.40
Closed, ResolvedPublicBUG REPORT

Description

When loading an item page with an item having an image attached, the WikibaseLocalMedia extension causes the display of a deprecation warning.

screenshot-20231110113825.png (344×1 px, 106 KB)

Use of Language::factory was deprecated in MediaWiki 1.35. [Called from Wikibase\LocalMedia\Services\InlineImageFormatter::__construct in /var/www/html/extensions/WikibaseLocalMedia/src/Services/InlineImageFormatter.php at line 68]

To reproduce, browse the item revision history back and forth between revisions with and without image. This probably flushes some cache. The deprecation warning is not visible on simple page (re-)loads as soon as the page has been rendered once.

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptNov 10 2023, 10:41 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript