Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal exception of type "Error" when using PortableInfobox on MediaWiki version 1.41.0 #114

Open
Vistulis opened this issue Feb 28, 2024 · 0 comments

Comments

@Vistulis
Copy link

Hello there, I'm not sure if this is just me being terrible at MediaWiki but I've encountered a problem with infoboxes.
I'm running:

MediaWiki | 1.41.0
PHP | 8.2.16 (apache2handler)
ICU | 64.2
MariaDB | 10.4.17-MariaDB 1.41.0

The problem occured after I created an infobox using Special:InfoboxBuilder. I used the default infobox it gives you and it still occurs.
This is the code it generated:

<infobox>
	<title source="title">
		<default>{{PAGENAME}}</default>
	</title>
	<image source="image"/>
	<data source="data1">
		<label>Label</label>
	</data>
	<data source="data2">
		<label>Label</label>
	</data>
</infobox>

On the page of this infobox, this can be seen:

[Zd@NDtviGM7mnxza@dD18gAAAAM] 2024-02-28 19:44:15: Fatal exception of type "Error"

If I enable exceptionDetails then it shows this long error:

[Zd@NOhcxlNYDHLEc009VwwAAACw] /index.php/Template:TestInfobox Error: Value of type bool is not callable

Backtrace:

from /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/Helpers/PortableInfoboxTemplateEngine.php(59)
#0 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/PortableInfoboxRenderService.php(60): PortableInfobox\Helpers\PortableInfoboxTemplateEngine->render(string, array)
#1 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/PortableInfoboxRenderService.php(168): PortableInfoboxRenderService->render(string, array)
#2 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/PortableInfoboxRenderService.php(83): PortableInfoboxRenderService->renderTitle(array)
#3 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/PortableInfoboxRenderService.php(182): PortableInfoboxRenderService->renderItem(string, array)
#4 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/services/PortableInfoboxRenderService.php(35): PortableInfoboxRenderService->renderChildren(array)
#5 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/controllers/PortableInfoboxParserTagController.php(76): PortableInfoboxRenderService->renderInfobox(array, string, string, string, string, string, string)
#6 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/extensions/PortableInfobox/includes/controllers/PortableInfoboxParserTagController.php(131): PortableInfoboxParserTagController->render(string, Parser, PPFrame_Hash, array)
#7 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/parser/Parser.php(3943): PortableInfoboxParserTagController->renderInfobox(string, array, Parser, PPFrame_Hash)
#8 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/parser/PPFrame_Hash.php(351): Parser->extensionSubstitution(array, PPFrame_Hash, boolean)
#9 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/parser/Parser.php(2888): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#10 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/parser/Parser.php(1544): Parser->replaceVariables(string)
#11 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/parser/Parser.php(651): Parser->internalParse(string)
#12 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/content/WikitextContentHandler.php(420): Parser->parse(string, MediaWiki\Title\Title, ParserOptions, boolean, boolean, integer)
#13 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/content/ContentHandler.php(1759): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
#14 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#15 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/Revision/RenderedRevision.php(259): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, integer, ParserOptions, boolean)
#16 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#17 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/Revision/RevisionRenderer.php(223): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#18 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#19 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#20 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#21 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/poolcounter/PoolWorkArticleView.php(84): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#22 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/poolcounter/PoolWorkArticleViewCurrent.php(104): PoolWorkArticleView->renderRevision()
#23 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/poolcounter/PoolCounterWork.php(167): PoolWorkArticleViewCurrent->doWork()
#24 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/page/ParserOutputAccess.php(304): PoolCounterWork->execute()
#25 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/page/Article.php(746): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#26 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/page/Article.php(550): Article->generateContentOutput(MediaWiki\User\User, ParserOptions, integer, MediaWiki\Output\OutputPage, array)
#27 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/actions/ViewAction.php(78): Article->view()
#28 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/MediaWiki.php(583): ViewAction->show()
#29 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/MediaWiki.php(363): MediaWiki->performAction(Article, MediaWiki\Title\Title)
#30 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/MediaWiki.php(960): MediaWiki->performRequest()
#31 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/includes/MediaWiki.php(613): MediaWiki->main()
#32 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/index.php(50): MediaWiki->run()
#33 /home/vol2_8/ezyro.com/ezyro_36068273/htdocs/index.php(46): wfIndexMain()
#34 {main}

The theme I'm using is Cosmos, not sure if that would affect anything.
And the extensions I've installed are VisualEditor 0.1.2 and PortableInfobox 0.6

I hope I haven't missed anything really obvious, thank you in advance for anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant