Page MenuHomePhabricator

PHP Deprecated: Use of Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from Parser::addTrackingCategory]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of Parser::getPage without a Title set was deprecated in MediaWiki 1.34. [Called from Parser::addTrackingCategory]
error.stack_trace
from /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(4079)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.42.0-wmf.4/includes/debug/MWDebug.php(378): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.42.0-wmf.4/includes/debug/MWDebug.php(349): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.42.0-wmf.4/includes/debug/MWDebug.php(230): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.42.0-wmf.4/includes/GlobalFunctions.php(775): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(1002): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(4079): Parser->getPage()
#7 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Hooks.php(216): Parser->addTrackingCategory(string)
#8 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3369): MediaWiki\Extension\Scribunto\Hooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#9 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3054): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#10 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/PPFrame_Hash.php(274): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#11 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/PPTemplateFrame_Hash.php(98): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#12 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3242): PPTemplateFrame_Hash->cachedExpand(string, PPNode_Hash_Tree)
#13 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/PPFrame_Hash.php(274): Parser->braceSubstitution(array, PPFrame_Hash)
#14 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(2886): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#15 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(888): Parser->replaceVariables(string, PPFrame_Hash)
#16 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(4817): Parser->preprocess(string, MediaWiki\Title\Title, ParserOptions)
#17 /srv/mediawiki/php-1.42.0-wmf.4/includes/language/MessageCache.php(1442): Parser->transformMsg(string, ParserOptions, NULL)
#18 /srv/mediawiki/php-1.42.0-wmf.4/includes/language/Message.php(1468): MessageCache->transform(string, boolean, LanguageEn, NULL)
#19 /srv/mediawiki/php-1.42.0-wmf.4/includes/language/Message.php(1011): Message->transformText(string)
#20 /srv/mediawiki/php-1.42.0-wmf.4/includes/language/Message.php(1059): Message->format(string)
#21 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/ScribuntoException.php(54): Message->text()
#22 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaCommon/LuaError.php(26): MediaWiki\Extension\Scribunto\ScribuntoException->__construct(string, array)
#23 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(120): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaError->__construct(string, array)
#24 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(101): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->newLuaError(string, array)
#25 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(148): MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->convertSandboxError(LuaSandboxRuntimeError)
#26 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(312): MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#27 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Engines/LuaCommon/LuaModule.php(75): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#28 /srv/mediawiki/php-1.42.0-wmf.4/extensions/Scribunto/includes/Hooks.php(170): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaModule->invoke(string, PPTemplateFrame_Hash)
#29 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3369): MediaWiki\Extension\Scribunto\Hooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#30 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3054): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#31 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/PPFrame_Hash.php(274): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#32 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(3245): PPFrame_Hash->expand(PPNode_Hash_Tree)
#33 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/PPFrame_Hash.php(274): Parser->braceSubstitution(array, PPFrame_Hash)
#34 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parser.php(2886): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#35 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parsoid/Config/DataAccess.php(370): Parser->replaceVariables(string, PPFrame_Hash)
#36 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wikitext/Wikitext.php(43): MediaWiki\Parser\Parsoid\Config\DataAccess->preprocessWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, string)
#37 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1045): Wikimedia\Parsoid\Wikitext\Wikitext::preprocess(Wikimedia\Parsoid\Config\Env, string)
#38 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1088): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->expandTemplate(Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator)
#39 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1133): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTemplate(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#40 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TT/TokenHandler.php(146): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTag(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#41 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(132): Wikimedia\Parsoid\Wt2Html\TT\TokenHandler->process(array)
#42 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(195): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunk(array)
#43 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(193): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#44 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/TreeBuilder/TreeBuilderStage.php(490): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#45 [internal function]: Wikimedia\Parsoid\Wt2Html\TreeBuilder\TreeBuilderStage->processChunkily(string, array)
#46 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(993): Generator->current()
#47 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(180): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#48 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(299): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#49 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Wikitext/ContentModelHandler.php(164): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#50 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Parsoid.php(199): Wikimedia\Parsoid\Wikitext\ContentModelHandler->toDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI)
#51 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/src/Parsoid.php(240): Wikimedia\Parsoid\Parsoid->parseWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, array)
#52 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parsoid/ParsoidParser.php(150): Wikimedia\Parsoid\Parsoid->wikitext2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array, NULL, ParserOutput)
#53 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parsoid/ParsoidParser.php(254): MediaWiki\Parser\Parsoid\ParsoidParser->genParserOutput(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOptions)
#54 /srv/mediawiki/php-1.42.0-wmf.4/includes/content/WikitextContentHandler.php(420): MediaWiki\Parser\Parsoid\ParsoidParser->parse(string, MediaWiki\Title\Title, ParserOptions, boolean, boolean, integer)
#55 /srv/mediawiki/php-1.42.0-wmf.4/includes/content/ContentHandler.php(1759): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
#56 /srv/mediawiki/php-1.42.0-wmf.4/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#57 /srv/mediawiki/php-1.42.0-wmf.4/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, integer, ParserOptions, boolean)
#58 /srv/mediawiki/php-1.42.0-wmf.4/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#59 /srv/mediawiki/php-1.42.0-wmf.4/includes/Revision/RevisionRenderer.php(223): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#60 /srv/mediawiki/php-1.42.0-wmf.4/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#61 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#62 /srv/mediawiki/php-1.42.0-wmf.4/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#63 /srv/mediawiki/php-1.42.0-wmf.4/includes/poolcounter/PoolWorkArticleView.php(84): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#64 /srv/mediawiki/php-1.42.0-wmf.4/includes/poolcounter/PoolWorkArticleViewOld.php(66): PoolWorkArticleView->renderRevision()
#65 /srv/mediawiki/php-1.42.0-wmf.4/includes/poolcounter/PoolCounterWork.php(167): PoolWorkArticleViewOld->doWork()
#66 /srv/mediawiki/php-1.42.0-wmf.4/includes/page/ParserOutputAccess.php(304): PoolCounterWork->execute()
#67 /srv/mediawiki/php-1.42.0-wmf.4/includes/parser/Parsoid/ParsoidOutputAccess.php(197): MediaWiki\Page\ParserOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#68 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(761): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer, boolean)
#69 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(569): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutputInternal(ParserOptions)
#70 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(665): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutput()
#71 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Handler/ParsoidHandler.php(741): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getPageBundle()
#72 /srv/mediawiki/php-1.42.0-wmf.4/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(92): MediaWiki\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#73 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Router.php(536): MWParsoid\Rest\Handler\PageHandler->execute()
#74 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/Router.php(441): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#75 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/EntryPoint.php(195): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#76 /srv/mediawiki/php-1.42.0-wmf.4/includes/Rest/EntryPoint.php(135): MediaWiki\Rest\EntryPoint->execute()
#77 /srv/mediawiki/php-1.42.0-wmf.4/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#78 /srv/mediawiki/w/rest.php(3): require(string)
#79 {main}
Impact

9 occurrences in enwiktionary in the last hour.

Notes

Details

Request URL
https://en.wiktionary.org/w/rest.php/en.wiktionary.org/v3/page/pagebundle/Sudeste/76609921

Event Timeline

cscott subscribed.

This looks like fallout from a Title refactoring to PageReference, not really a Parser bug. It also occurs in the Scribunto extension, probably triggered from some lua code.

This is triggered by fdfc99e01f2138773ab7e06e00d9c10a17e8d51d which is several months old, but the root cause is in Scribunto.

Change 975017 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/extensions/Scribunto@master] Ensure that Scribunto exceptions have a page context set

https://gerrit.wikimedia.org/r/975017

Change 975019 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Message: warn if wikitext messages are parsed without a title context

https://gerrit.wikimedia.org/r/975019

Change 975017 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Ensure that Scribunto exceptions have a page context set

https://gerrit.wikimedia.org/r/975017

cscott claimed this task.

Should be fixed.