Page MenuHomePhabricator

formatNum errors in Scribunto
Closed, DuplicatePublic

Description

URL: /w/rest.php/en.wikipedia.org/v3/page/pagebundle/2020%E2%80%9321_Kerala_Blasters_FC_season/987817636
Exception: Use of Language::formatNum with a non-numeric string was deprecated in MediaWiki 1.36. [Called from Language::formatNum]
Stack Trace:

#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.36.0-wmf.16/includes/debug/MWDebug.php(329): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.36.0-wmf.16/includes/debug/MWDebug.php(305): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.36.0-wmf.16/includes/debug/MWDebug.php(234): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.36.0-wmf.16/includes/GlobalFunctions.php(1029): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.36.0-wmf.16/languages/Language.php(3286): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.36.0-wmf.16/languages/Language.php(3265): Language->formatNumInternal(string, boolean, boolean)
#7 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaCommon/LanguageLibrary.php(310): Language->formatNum(double)
#8 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaCommon/LanguageLibrary.php(204): Scribunto_LuaLanguageLibrary->formatNum(LanguageEn, array)
#9 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaCommon/LanguageLibrary.php(50): Scribunto_LuaLanguageLibrary->languageMethod(string, array)
#10 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaSandbox/LuaSandboxCallback.php(26): Scribunto_LuaLanguageLibrary->{closure}(string, double)
#11 [internal function]: Scribunto_LuaSandboxCallback->__call(string, array)
#12 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaSandbox/LuaSandboxInterpreter.php(113): LuaSandboxFunction->call(LuaSandboxFunction)
#13 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(291): Scribunto_LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#14 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(68): Scribunto_LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#15 /srv/mediawiki/php-1.36.0-wmf.16/extensions/Scribunto/includes/common/Hooks.php(128): Scribunto_LuaModule->invoke(string, PPTemplateFrame_Hash)
#16 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/Parser.php(3347): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#17 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/Parser.php(3034): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#18 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#19 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/Parser.php(3223): PPFrame_Hash->expand(PPNode_Hash_Tree)
#20 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution(array, PPFrame_Hash)
#21 /srv/mediawiki/php-1.36.0-wmf.16/includes/parser/Parser.php(2872): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#22 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/extension/src/Config/DataAccess.php(283): Parser->replaceVariables(string)
#23 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1174): MWParsoid\Config\DataAccess->preprocessWikitext(MWParsoid\Config\PageConfig, string)
#24 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1520): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->fetchExpandedTpl(string)
#25 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1583): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTemplate(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#26 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TT/TokenHandler.php(202): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTag(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#27 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(123): Wikimedia\Parsoid\Wt2Html\TT\TokenHandler->process(array)
#28 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(195): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunk(array)
#29 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(193): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#30 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/HTML5TreeBuilder.php(418): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#31 [internal function]: Wikimedia\Parsoid\Wt2Html\HTML5TreeBuilder->processChunkily(string, array)
#32 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(911): Generator->current()
#33 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(174): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#34 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(235): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#35 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(299): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseToplevelDoc(string, array)
#36 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(107): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#37 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Parsoid.php(162): Wikimedia\Parsoid\Core\WikitextContentModelHandler->toDOM(Wikimedia\Parsoid\Config\Env)
#38 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/src/Parsoid.php(194): Wikimedia\Parsoid\Parsoid->parseWikitext(MWParsoid\Config\PageConfig, array)
#39 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(589): Wikimedia\Parsoid\Parsoid->wikitext2html(MWParsoid\Config\PageConfig, array, NULL)
#40 /srv/mediawiki/php-1.36.0-wmf.16/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(88): MWParsoid\Rest\Handler\ParsoidHandler->wt2html(MWParsoid\Config\PageConfig, array)
#41 /srv/mediawiki/php-1.36.0-wmf.16/includes/Rest/Router.php(381): MWParsoid\Rest\Handler\PageHandler->execute()
#42 /srv/mediawiki/php-1.36.0-wmf.16/includes/Rest/Router.php(316): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#43 /srv/mediawiki/php-1.36.0-wmf.16/includes/Rest/EntryPoint.php(153): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#44 /srv/mediawiki/php-1.36.0-wmf.16/includes/Rest/EntryPoint.php(117): MediaWiki\Rest\EntryPoint->execute()
#45 /srv/mediawiki/php-1.36.0-wmf.16/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#46 /srv/mediawiki/w/rest.php(3): require(string)
#47 {main}