Page MenuHomePhabricator

Special:RunQuery transclusion error on MW 1.35: Return value of Parser::getTitle() must be an instance of Title, null returned
Open, Needs TriagePublicBUG REPORT

Description

Setup:

Steps to Reproduce:

When i try to save a page where I transclude: <nowiki>{{Special:RunQuery/Search}}</wiki> I get the following errors in <code>&action=submit</code>

It is running on a private wiki but if you want to look at the erro, please request an account at https://www.confident-conference.org/r/vanilla/Special:RequestAccount

Actual Results:
On save page

MediaWiki internal error.

Original exception: [be061b9bba1c6d006d3f0b4f] [no req] TypeError from line 1007 of /var/www/html/r/vanilla/includes/parser/Parser.php: Return value of Parser::getTitle() must be an instance of Title, null returned
Backtrace:
#0 /var/www/html/r/vanilla/extensions/PageForms/includes/PF_FormUtils.php(455): Parser->getTitle()
#1 /var/www/html/r/vanilla/extensions/PageForms/includes/PF_FormPrinter.php(896): PFFormUtils::getFormDefinition(Parser, string, integer)
#2 /var/www/html/r/vanilla/includes/StubObject.php(116): PFFormPrinter->formHTML(string, boolean, boolean, integer, NULL, NULL, NULL, boolean, boolean)
#3 /var/www/html/r/vanilla/includes/StubObject.php(142): StubObject->_call(string, array)
#4 /var/www/html/r/vanilla/extensions/PageForms/specials/PF_RunQuery.php(79): StubObject->__call(string, array)
#5 /var/www/html/r/vanilla/extensions/PageForms/specials/PF_RunQuery.php(26): PFRunQuery->printPage(string, boolean)
#6 /var/www/html/r/vanilla/includes/specialpage/SpecialPage.php(600): PFRunQuery->execute(string)
#7 /var/www/html/r/vanilla/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(string)
#8 /var/www/html/r/vanilla/includes/specialpage/SpecialPageFactory.php(693): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext, boolean, MediaWiki\Linker\LinkRenderer)
#9 /var/www/html/r/vanilla/includes/parser/Parser.php(3144): MediaWiki\SpecialPage\SpecialPageFactory->capturePath(Title, RequestContext, MediaWiki\Linker\LinkRenderer)
#10 /var/www/html/r/vanilla/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution(array, PPFrame_Hash)
#11 /var/www/html/r/vanilla/includes/parser/Parser.php(2887): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#12 /var/www/html/r/vanilla/includes/parser/Parser.php(1556): Parser->replaceVariables(string)
#13 /var/www/html/r/vanilla/includes/parser/Parser.php(651): Parser->internalParse(string)
#14 /var/www/html/r/vanilla/includes/content/WikitextContent.php(374): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#15 /var/www/html/r/vanilla/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#16 /var/www/html/r/vanilla/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)
#17 /var/www/html/r/vanilla/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#18 /var/www/html/r/vanilla/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#19 /var/www/html/r/vanilla/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#20 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#21 /var/www/html/r/vanilla/includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#22 /var/www/html/r/vanilla/includes/Storage/DerivedPageDataUpdater.php(1315): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#23 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#24 /var/www/html/r/vanilla/includes/edit/PreparedEdit.php(104): call_user_func(array)
#25 /var/www/html/r/vanilla/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput()
#26 /var/www/html/r/vanilla/includes/Storage/DerivedPageDataUpdater.php(1293): MediaWiki\Edit\PreparedEdit->__get(string)
#27 /var/www/html/r/vanilla/includes/page/WikiPage.php(2117): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()
#28 /var/www/html/r/vanilla/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(30): WikiPage->prepareContentForEdit(WikitextContent)
#29 /var/www/html/r/vanilla/includes/HookContainer/HookContainer.php(320): SpamBlacklistHooks::filterMergedContent(DerivativeContext, WikitextContent, Status, string, User, boolean)
#30 /var/www/html/r/vanilla/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#31 /var/www/html/r/vanilla/includes/HookContainer/HookRunner.php(1529): MediaWiki\HookContainer\HookContainer->run(string, array)
#32 /var/www/html/r/vanilla/includes/EditPage.php(1903): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent(DerivativeContext, WikitextContent, Status, string, User, boolean)
#33 /var/www/html/r/vanilla/includes/EditPage.php(2362): EditPage->runPostMergeFilters(WikitextContent, Status, User)
#34 /var/www/html/r/vanilla/includes/EditPage.php(1723): EditPage->internalAttemptSave(NULL, boolean)
#35 /var/www/html/r/vanilla/includes/EditPage.php(680): EditPage->attemptSave(NULL)
#36 /var/www/html/r/vanilla/includes/actions/EditAction.php(71): EditPage->edit()
#37 /var/www/html/r/vanilla/includes/actions/SubmitAction.php(38): EditAction->show()
#38 /var/www/html/r/vanilla/includes/MediaWiki.php(527): SubmitAction->show()
#39 /var/www/html/r/vanilla/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
#40 /var/www/html/r/vanilla/includes/MediaWiki.php(940): MediaWiki->performRequest()
#41 /var/www/html/r/vanilla/includes/MediaWiki.php(543): MediaWiki->main()
#42 /var/www/html/r/vanilla/index.php(53): MediaWiki->run()
#43 /var/www/html/r/vanilla/index.php(46): wfIndexMain()
#44 {main}

Exception caught inside exception handler: [be061b9bba1c6d006d3f0b4f] [no req] MWException from line 165 of /var/www/html/r/vanilla/includes/FauxRequest.php: Request URL not set
Backtrace:
#0 /var/www/html/r/vanilla/includes/skins/SkinTemplate.php(1143): FauxRequest->getRequestURL()
#1 /var/www/html/r/vanilla/includes/skins/SkinTemplate.php(430): SkinTemplate->buildContentNavigationUrls()
#2 /var/www/html/r/vanilla/includes/skins/SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()
#3 /var/www/html/r/vanilla/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()
#4 /var/www/html/r/vanilla/includes/OutputPage.php(2615): SkinTemplate->outputPage()
#5 /var/www/html/r/vanilla/includes/exception/MWExceptionRenderer.php(153): OutputPage->output()
#6 /var/www/html/r/vanilla/includes/exception/MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(TypeError)
#7 /var/www/html/r/vanilla/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(TypeError, integer)
#8 /var/www/html/r/vanilla/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(TypeError)
#9 /var/www/html/r/vanilla/includes/MediaWiki.php(579): MWExceptionHandler::handleException(TypeError, string)
#10 /var/www/html/r/vanilla/index.php(53): MediaWiki->run()
#11 /var/www/html/r/vanilla/index.php(46): wfIndexMain()
#12 {main}

Expected Results:

Event Timeline

AndreCstr created this task.Oct 5 2020, 8:18 AM
Restricted Application added subscribers: jeblad, Aklapper. · View Herald TranscriptOct 5 2020, 8:18 AM
AndreCstr removed Yaron_Koren as the assignee of this task.Oct 5 2020, 8:19 AM
AndreCstr added a subscriber: Yaron_Koren.
Aklapper renamed this task from Special:RunQuery transclsion error on MW 1.35 to Special:RunQuery transclusion error on MW 1.35: Return value of Parser::getTitle() must be an instance of Title, null returned.Oct 5 2020, 8:50 AM