Hi there, we're trying to run the "graph" format of Semantic Results Format, which evidently requires Diagrams to function. We just plugged in the default example query which for us looks like:
{{#ask:[[Category:People]] |?Teacherof |?Studentof |format=graph |graphcolor=yes |graphlink=yes |graphname=TeacherStudentRelationships |graphlegend=yes |graphlabel=no |graphsize=10,100 |rankdir=TB }}
We are getting the following error when trying to save the page:
[ba1052b0702986c0a93cde15] /index.php?action=submit&title=User:Jeremi Error from line 160 of /var/www/html/extensions/Diagrams/includes/Diagrams.php: Call to undefined method MediaWiki\Shell\CommandFactory::createBoxed() Backtrace: #0 /var/www/html/extensions/Diagrams/includes/Diagrams.php(114): MediaWiki\Extension\Diagrams\Diagrams->runCommand() #1 /var/www/html/extensions/Diagrams/includes/Hooks.php(54): MediaWiki\Extension\Diagrams\Diagrams->renderLocally() #2 /var/www/html/includes/parser/Parser.php(3922): MediaWiki\Extension\Diagrams\Hooks::MediaWiki\Extension\Diagrams\{closure}() #3 /var/www/html/includes/parser/PPFrame_Hash.php(340): Parser->extensionSubstitution() #4 /var/www/html/includes/parser/Parser.php(2887): PPFrame_Hash->expand() #5 /var/www/html/includes/parser/Parser.php(1556): Parser->replaceVariables() #6 /var/www/html/includes/parser/Parser.php(850): Parser->internalParse() #7 /var/www/html/extensions/SemanticResultFormats/src/Graph/GraphPrinter.php(183): Parser->recursiveTagParse() #8 /var/www/html/extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(341): SRF\Graph\GraphPrinter->getResultText() #9 /var/www/html/extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(306): SMW\Query\ResultPrinters\ResultPrinter->buildResult() #10 /var/www/html/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(348): SMW\Query\ResultPrinters\ResultPrinter->getResult() #11 /var/www/html/extensions/SemanticMediaWiki/src/ParserFunctions/AskParserFunction.php(361): SMWQueryProcessor::getResultFromQuery() #12 /var/www/html/extensions/SemanticMediaWiki/src/ParserFunctions/AskParserFunction.php(196): SMW\ParserFunctions\AskParserFunction->doFetchResultsFromFunctionParameters() #13 /var/www/html/extensions/SemanticMediaWiki/src/ParserFunctionFactory.php(402): SMW\ParserFunctions\AskParserFunction->parse() #14 /var/www/html/includes/parser/Parser.php(3340): SMW\ParserFunctionFactory->SMW\{closure}() #15 /var/www/html/includes/parser/Parser.php(3047): Parser->callParserFunction() #16 /var/www/html/includes/parser/PPFrame_Hash.php(263): Parser->braceSubstitution() #17 /var/www/html/includes/parser/Parser.php(2887): PPFrame_Hash->expand() #18 /var/www/html/includes/parser/Parser.php(1556): Parser->replaceVariables() #19 /var/www/html/includes/parser/Parser.php(651): Parser->internalParse() #20 /var/www/html/includes/content/WikitextContent.php(374): Parser->parse() #21 /var/www/html/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput() #22 /var/www/html/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput() #23 /var/www/html/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached() #24 /var/www/html/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput() #25 /var/www/html/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput() #26 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}() #27 /var/www/html/includes/Revision/RenderedRevision.php(197): call_user_func() #28 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1315): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #29 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput() #30 /var/www/html/includes/edit/PreparedEdit.php(104): call_user_func() #31 /var/www/html/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput() #32 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1293): MediaWiki\Edit\PreparedEdit->__get() #33 /var/www/html/includes/page/WikiPage.php(2117): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit() #34 /var/www/html/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(34): WikiPage->prepareContentForEdit() #35 /var/www/html/includes/HookContainer/HookContainer.php(329): SpamBlacklistHooks::filterMergedContent() #36 /var/www/html/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook() #37 /var/www/html/includes/HookContainer/HookRunner.php(1529): MediaWiki\HookContainer\HookContainer->run() #38 /var/www/html/includes/EditPage.php(1906): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent() #39 /var/www/html/includes/EditPage.php(2365): EditPage->runPostMergeFilters() #40 /var/www/html/includes/EditPage.php(1726): EditPage->internalAttemptSave() #41 /var/www/html/includes/EditPage.php(680): EditPage->attemptSave() #42 /var/www/html/includes/actions/EditAction.php(71): EditPage->edit() #43 /var/www/html/includes/actions/SubmitAction.php(38): EditAction->show() #44 /var/www/html/includes/MediaWiki.php(532): SubmitAction->show() #45 /var/www/html/includes/MediaWiki.php(313): MediaWiki->performAction() #46 /var/www/html/includes/MediaWiki.php(945): MediaWiki->performRequest() #47 /var/www/html/includes/MediaWiki.php(548): MediaWiki->main() #48 /var/www/html/index.php(53): MediaWiki->run() #49 /var/www/html/index.php(46): wfIndexMain() #50 {main}
Any information or clues? Thank you so much!
Jeremi Plazas (talk) 17:38, 28 February 2024 (UTC)