Topic on Skin talk:Astra

internal error MW 1.40 and PHP 8.1

2
Summary by Jdlrobson

Removing the powered by MediaWiki icon using `$wgFooterIcons['poweredby']['mediawiki'];` is not supported on any skin (including Astra) as far as I'm aware.

31.36.120.138 (talkcontribs)

MediaWiki internal error.

Original exception: [ZKijXJaFjLrKs9dSr1ABQAAAAII] /mw19/index.php/Main_Page Error: Call to a member function getTemplateData() on array

Backtrace:

from /home/gardenof/public_html/mw19/includes/skins/components/SkinComponentFooter.php(318)

#0 /home/gardenof/public_html/mw19/includes/skins/components/SkinComponentFooter.php(76): MediaWiki\Skin\SkinComponentFooter->getFooterIcons()

#1 /home/gardenof/public_html/mw19/includes/skins/Skin.php(195): MediaWiki\Skin\SkinComponentFooter->getTemplateData()

#2 /home/gardenof/public_html/mw19/includes/skins/SkinTemplate.php(188): Skin->getTemplateData()

#3 /home/gardenof/public_html/mw19/includes/skins/SkinMustache.php(92): SkinTemplate->getTemplateData()

#4 /home/gardenof/public_html/mw19/includes/skins/SkinMustache.php(62): SkinMustache->getTemplateData()

#5 /home/gardenof/public_html/mw19/includes/skins/SkinTemplate.php(181): SkinMustache->generateHTML()

#6 /home/gardenof/public_html/mw19/includes/OutputPage.php(2899): SkinTemplate->outputPage()

#7 /home/gardenof/public_html/mw19/includes/MediaWiki.php(941): OutputPage->output()

#8 /home/gardenof/public_html/mw19/includes/MediaWiki.php(576): MediaWiki->main()

#9 /home/gardenof/public_html/mw19/index.php(50): MediaWiki->run()

#10 /home/gardenof/public_html/mw19/index.php(46): wfIndexMain()

#11 {main}

Exception caught inside exception handler: [ZKijXJaFjLrKs9dSr1ABQAAAAII] /mw19/index.php/Main_Page Error: Call to a member function getTemplateData() on array

Backtrace:

from /home/gardenof/public_html/mw19/includes/skins/components/SkinComponentFooter.php(318)

#0 /home/gardenof/public_html/mw19/includes/skins/components/SkinComponentFooter.php(76): MediaWiki\Skin\SkinComponentFooter->getFooterIcons()

#1 /home/gardenof/public_html/mw19/includes/skins/Skin.php(195): MediaWiki\Skin\SkinComponentFooter->getTemplateData()

#2 /home/gardenof/public_html/mw19/includes/skins/SkinTemplate.php(188): Skin->getTemplateData()

#3 /home/gardenof/public_html/mw19/includes/skins/SkinMustache.php(92): SkinTemplate->getTemplateData()

#4 /home/gardenof/public_html/mw19/includes/skins/SkinMustache.php(62): SkinMustache->getTemplateData()

#5 /home/gardenof/public_html/mw19/includes/skins/SkinTemplate.php(181): SkinMustache->generateHTML()

#6 /home/gardenof/public_html/mw19/includes/OutputPage.php(2899): SkinTemplate->outputPage()

#7 /home/gardenof/public_html/mw19/includes/exception/MWExceptionRenderer.php(184): OutputPage->output()

#8 /home/gardenof/public_html/mw19/includes/exception/MWExceptionRenderer.php(103): MWExceptionRenderer::reportHTML()

#9 /home/gardenof/public_html/mw19/includes/exception/MWExceptionHandler.php(132): MWExceptionRenderer::output()

#10 /home/gardenof/public_html/mw19/includes/exception/MWExceptionHandler.php(249): MWExceptionHandler::report()

#11 /home/gardenof/public_html/mw19/includes/MediaWiki.php(598): MWExceptionHandler::handleException()

#12 /home/gardenof/public_html/mw19/index.php(50): MediaWiki->run()

#13 /home/gardenof/public_html/mw19/index.php(46): wfIndexMain()

#14 {main}

31.36.120.138 (talkcontribs)

With MW 1.40 and PHP 8.1, it is not possible to use

unset ($wgFooterIcons['poweredby']['mediawiki']);