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

Calendar format query produces exception #840

Open
freephile opened this issue Jun 12, 2024 · 1 comment
Open

Calendar format query produces exception #840

freephile opened this issue Jun 12, 2024 · 1 comment
Labels

Comments

@freephile
Copy link

Setup

On the website https://www.semantic-mediawiki.org/wiki/Help:Calendar_format

Issue

Clicking the link in the Example section (leads to this page) produces a SubSemanticDataException Fatal exception

The exception message is:

[3077da85100755f242b2e36a] 2024-06-12 14:51:32: Fatal exception of type "SMW\Exception\SubSemanticDataException"

(Note: I left an edit comment in the wikitext of the Help page next to the query)

@freephile freephile added the bug label Jun 12, 2024
@kghbln
Copy link
Member

kghbln commented Jun 14, 2024

Note that this is a dated instance. @freephile It will be great if you could reproduce on https://sandbox.semantic-mediawiki.net/wiki/Main_Page

Notice: Uninitialized string offset: 87 in /../w/extensions/PageForms/includes/PF_FormPrinter.php on line 984
Notice: Array to string conversion in /../w/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 371
Notice: Array to string conversion in /../w/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 373
Notice: Array to string conversion in /../w/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 371
Notice: Array to string conversion in /../w/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 373

Issue

[dad1a7bee28eaec2179fe24b] /wiki/Special:RunQuery/Query/Scenario?title=Special%3ARunQuery&form=Query%2FScenario&target=&Query%2FScenario=scenario%3DCalendar%26lang%3Den&wpRunQuery=true&pfRunQueryFormName=Query%2FScenario&Query%2FScenario%5Bscenario%5D=Calendar&Query%2FScenario%5Blang%5D=en&pf_free_text=&wpRunQuery= SMW\Exception\SubSemanticDataException from line 190 of /../w/extensions/SemanticMediaWiki/src/DataModel/SubSemanticData.php: Data for a subobject of RunQuery cannot be added to RunQuery/Query/Scenario.

Backtrace:

#0 /../w/extensions/SemanticMediaWiki/includes/SemanticData.php(877): SMW\DataModel\SubSemanticData->addSubSemanticData(SMW\DataModel\ContainerSemanticData)
SemanticMediaWiki/SemanticMediaWiki#1 /../w/extensions/SemanticMediaWiki/includes/SemanticData.php(473): SMW\SemanticData->addSubSemanticData(SMW\DataModel\ContainerSemanticData)
SemanticMediaWiki/SemanticMediaWiki#2 /../w/extensions/SemanticMediaWiki/includes/SemanticData.php(610): SMW\SemanticData->addPropertyObjectValue(SMW\DIProperty, SMWDIContainer)
SemanticMediaWiki/SemanticMediaWiki#3 /../w/extensions/SemanticMediaWiki/src/ParserFunctions/SubobjectParserFunction.php(167): SMW\SemanticData->addSubobject(SMW\Subobject)
SemanticMediaWiki/SemanticMediaWiki#4 /../w/extensions/SemanticMediaWiki/src/ParserFunctionFactory.php(448): SMW\ParserFunctions\SubobjectParserFunction->parse(SMW\ParserParameterProcessor)
SemanticMediaWiki/SemanticMediaWiki#5 /../w/includes/parser/Parser.php(3426): SMW\ParserFunctionFactory->SMW\{closure}(Parser, string, string, string, string, string)
SemanticMediaWiki/SemanticMediaWiki#6 /../w/includes/parser/Parser.php(3127): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
SemanticMediaWiki/SemanticMediaWiki#7 /../w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
SemanticMediaWiki/SemanticMediaWiki#8 /../w/includes/parser/Preprocessor_DOM.php(1727): PPFrame_DOM->expand(DOMElement, integer)
SemanticMediaWiki/SemanticMediaWiki#9 /../w/includes/parser/Parser.php(3302): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
SemanticMediaWiki/SemanticMediaWiki#10 /../w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
SemanticMediaWiki/SemanticMediaWiki#11 /../w/includes/parser/Parser.php(3305): PPFrame_DOM->expand(DOMElement)
SemanticMediaWiki/SemanticMediaWiki#12 /../w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPFrame_DOM)
SemanticMediaWiki/SemanticMediaWiki#13 /../w/includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement, integer)
SemanticMediaWiki/SemanticMediaWiki#14 /../w/includes/parser/Parser.php(1293): Parser->replaceVariables(string)
SemanticMediaWiki/SemanticMediaWiki#15 /../w/includes/parser/Parser.php(443): Parser->internalParse(string)
SemanticMediaWiki/SemanticMediaWiki#16 /../w/extensions/PageForms/specials/PF_RunQuery.php(107): Parser->parse(string, Title, ParserOptions, boolean, boolean)
SemanticMediaWiki/SemanticMediaWiki#17 /../w/extensions/PageForms/specials/PF_RunQuery.php(28): PFRunQuery->printPage(string, boolean)
SemanticMediaWiki/SemanticMediaWiki#18 /../w/includes/specialpage/SpecialPage.php(565): PFRunQuery->execute(string)
SemanticMediaWiki/SemanticMediaWiki#19 /../w/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(string)
SemanticMediaWiki/SemanticMediaWiki#20 /../w/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
SemanticMediaWiki/SemanticMediaWiki#21 /../w/includes/MediaWiki.php(818): MediaWiki->performRequest()
SemanticMediaWiki/SemanticMediaWiki#22 /../w/includes/MediaWiki.php(524): MediaWiki->main()
SemanticMediaWiki/SemanticMediaWiki#23 /../w/index.php(42): MediaWiki->run()
SemanticMediaWiki/SemanticMediaWiki#24 {main}

@kghbln kghbln transferred this issue from SemanticMediaWiki/SemanticMediaWiki Jun 14, 2024
@kghbln kghbln changed the title SRF: Calendar format query produces exception Calendar format query produces exception Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants