Topic on Project:Support desk

Possible bug in template page information

3
Summary by Larrydberg

After another check, it was decided to report this issue as a bug in Phabricator. It's here.

Larrydberg (talkcontribs)

Hi. I have a potential bug. It may no longer be relevant so I'm asking for guidance here.

Page information on a template has a section "Page properties" with (on my wiki) a subsection "Pages transcluded on", a bulleted list of page titles. But the titles are all empty: You see only the bullet plus an "(edit)" link for an empty title. Example here.

When requesting this page info two warnings are logged for each list member: $page_title and $page_namespace are undefined. The offending code is includes/Title.php line 3158 where these two properties are referenced in a routine that seems to be invoked only when getting page info on a template.

The same page on other wikis, e.g. mediawiki.org, doesn't have the "Pages transcluded on" subsection and everything looks fine. This is no doubt because my version is older. But the same code appears in 1.39.0-wmf.12 so possibly there's latent buggy code even though its results aren't displayed. Send to Phabricator?

horawiki.org, MediaWiki 1.37.2, PHP 7.4.29 (litespeed), MySQL 5.6.51-cll-lve

Bawolff (talkcontribs)
Larrydberg (talkcontribs)

Same behavior with all extensions disabled. I'll file a bug. Thanks.