Extension talk:Header Footer

About this board

rebuildFileCache fails when HeaderFooter active

2
2003:C2:3F1A:A400:615A:F64D:8E1D:FCAE (talkcontribs)

Mediawiki 1.31.15: FileCache is active, HeaderFooter extension is active


php rebuildFileCache.php

->

Building content page file cache from page 0!

[2eca396023193fbd9b8da2a0] [no req]   Error from line 19 of /var/www/prod/mediawiki/extensions/HeaderFooter/HeaderFooter.class.php: Call to a member function getNsText() on null

Backtrace:

#0 /var/www/prod/mediawiki/includes/Hooks.php(177): HeaderFooter::hOutputPageParserOutput(OutputPage, ParserOutput)

#1 /var/www/prod/mediawiki/includes/Hooks.php(237): Hooks::callHook(string, array, array, NULL, string)

#2 /var/www/prod/mediawiki/includes/OutputPage.php(1810): Hooks::runWithoutAbort(string, array)

#3 /var/www/prod/mediawiki/includes/OutputPage.php(1861): OutputPage->addParserOutputMetadata(ParserOutput)

#4 /var/www/prod/mediawiki/includes/page/Article.php(619): OutputPage->addParserOutput(ParserOutput, array)

#5 /var/www/prod/mediawiki/maintenance/rebuildFileCache.php(148): Article->view()

#6 /var/www/prod/mediawiki/maintenance/doMaintenance.php(94): RebuildFileCache->execute()

#7 /var/www/prod/mediawiki/maintenance/rebuildFileCache.php(187): require_once(string)

#8 {main}


Any idea what is going wrong here?

2003:C2:3F22:8200:C1BD:F620:4468:F03 (talkcontribs)

We have abandoned the HeaderFooter extension now and switched to PageNotice, which offers pretty much the same capabilities.

Reply to "rebuildFileCache fails when HeaderFooter active"

Cannot set semantic properties from the header

1
Ammcgillivray (talkcontribs)

Is this intentional, or a known issue? I'm trying to allow all pages in the main namespace to be "tagged" with semantic properties, and that is accomplished through a template call in the header. However, I cannot set properties on the page through that template.

Reply to "Cannot set semantic properties from the header"

__NONSHEADER__ also removes the header on unprotected pages

1
Jiou7 (talkcontribs)

Thanks for this extension!

I am using the last version of the extension with Mediawiki 1.36. While the documentation says otherwise, __NONSHEADER__ removes the header, even on an unprotected page. Is it normal? Same with __NOHEADER__.

I would really love this option to work so I could unprotect pages while being sure the header stays in place

Reply to "__NONSHEADER__ also removes the header on unprotected pages"
Omda4wady (talkcontribs)

Are there any samole explain usage of this extension

Reply to "Need sample"
Farvardyn (talkcontribs)

How can I add some lines before </head> tag, not in top of pages ? This extension just adds header in top of pages not actually before </head>. How to edit the real header?


Revansx (talkcontribs)
Kghbln (talkcontribs)
Reply to "How to edit header?"

Edit Header/Footer without shell commands?

1
J2w (talkcontribs)

I do not have the option to connect in a shell to my MediaWiki installation.

I'm looking for an option to add 2 lines in the header (for Apple and Android touch icon) and a line in the footer for Matomo (PiWik). Manipulating the Skin template is becoming annoying from update to update.

Any hint to do this with an extension which does not need shell access? Thanks!

Reply to "Edit Header/Footer without shell commands?"
There are no older topics