Jump to content
MediaWiki

Extension talk:Header Footer

Add topic
From mediawiki.org
Latest comment: 4 months ago by BrigidTheIrish in topic Headers and footers do not appear.
Archives
[edit ]
Latest comment: 8 months ago 4 comments3 people in discussion

Instead of the correct page name, it outputs Special:Badtitle/Message. This worked great in mw 1.39. ~2025-29547-19 (talk) 12:47, 21 October 2025 (UTC) Reply

I think I found the problem: in src/HookHandler/AddHeaderFooter.php instead of wfMessage( ... ) we must use:
$context = RequestContext::getMain();
$msg = $context->msg($msgId);
How can I send a pull request? ~2025-29547-19 (talk) 19:08, 21 October 2025 (UTC) Reply
Indeed, I reproduced the issue with MW 1.45.0-alpha (1e134ef43f5d5) and HeaderFooter master (aa0ede5), and indeed your fix works.
I guess you can send a pull request on Gerrit in this repo: https://gerrit.wikimedia.org/r/q/project:mediawiki/extensions/HeaderFooter (ping @Osnard since this extension is in Bluespice).
Yes, if you provide a patch, I'll be happy to review and merge it. Osnard (talk) 14:22, 24 November 2025 (UTC) Reply
I searched if the context was available in one of the 3 provided variables in this hook ContentAlterParserOutput (Content, Title, ParserOutput) but didn’t find one.
This is caused by this commit in 1.44+ and this Phabricator task for FlaggedRevs is about a similar issue. ~ Seb35 [^_^] 16:57, 18 November 2025 (UTC) Reply

Headers and footers do not appear.

[edit ]
Latest comment: 4 months ago 1 comment1 person in discussion

MediaWiki version: 1.43.0
PHP: 8.2.12 (apache2handler)
ICU: 71.1
MariaDB: 10.4.32-MariaDB
Lua: 5.1.5
Pygments: 2.19.1

I created a test MediaWiki:Hf-nsheader- that just contained the sentence "This is a test." I purged the page cache, I purged the browser cache, nothing. The header does appear in the live preview when I'm in the source editor, but it does not appear after saving the page. I thought it might be a skin issue, so I tried all the bundled skins. Nothing worked.

I cannot provide a link to my wiki because it's hosted on my personal computer and only available on the local network. BrigidTheIrish (talk) 20:14, 6 March 2026 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /