Page MenuHomePhabricator

TypeError: MediaWiki\Parser\CoreMagicVariables::expand(): Return value must be of type ?string, array returned
Open, LowPublicPRODUCTION ERROR

Description

Error
  • service.version: 1.46.0-wmf.14
  • timestamp: 2026-02-11T10:27:24.577Z
  • labels.phpversion: 8.3.30
  • trace.id: 8003ac59-78a1-46a5-8d45-97acdf30545a
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   TypeError: MediaWiki\Parser\CoreMagicVariables::expand(): Return value must be of type ?string, array returned
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/CoreMagicVariables.php(299)
#0/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/Parser.php(2783)MediaWiki\Parser\CoreMagicVariables::expand(MediaWiki\Parser\Parser, string, MediaWiki\Utils\MWTimestamp, MediaWiki\Config\ServiceOptions, Monolog\Logger)
#1/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/Parser.php(3037)MediaWiki\Parser\Parser->expandMagicVariable(string, MediaWiki\Parser\PPFrame_Hash)
#2/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/PPFrame_Hash.php(266)MediaWiki\Parser\Parser->braceSubstitution(array, MediaWiki\Parser\PPFrame_Hash)
#3/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/Parser.php(2895)MediaWiki\Parser\PPFrame_Hash->expand(MediaWiki\Parser\PPNode_Hash_Tree, int)
#4/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/Parser.php(1537)MediaWiki\Parser\Parser->replaceVariables(string)
#5/srv/mediawiki/php-1.46.0-wmf.14/includes/Parser/Parser.php(624)MediaWiki\Parser\Parser->internalParse(string)
#6/srv/mediawiki/php-1.46.0-wmf.14/includes/Content/WikitextContentHandler.php(375)MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, null)
#7/srv/mediawiki/php-1.46.0-wmf.14/includes/Content/ContentHandler.php(1574)MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#8/srv/mediawiki/php-1.46.0-wmf.14/includes/Content/Renderer/ContentRenderer.php(67)MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#9/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiParse.php(116)MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Title\Title, null, MediaWiki\Parser\ParserOptions)
#10/srv/mediawiki/php-1.46.0-wmf.14/includes/PoolCounter/PoolCounterWorkViaCallback.php(68)MediaWiki\Api\ApiParse->MediaWiki\Api\{closure}()
#11/srv/mediawiki/php-1.46.0-wmf.14/includes/PoolCounter/PoolCounterWork.php(159)MediaWiki\PoolCounter\PoolCounterWorkViaCallback->doWork()
#12/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiParse.php(125)MediaWiki\PoolCounter\PoolCounterWork->execute()
#13/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiParse.php(402)MediaWiki\Api\ApiParse->getContentParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Title\Title, null, MediaWiki\Parser\ParserOptions)
#14/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiMain.php(2061)MediaWiki\Api\ApiParse->execute()
#15/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiMain.php(934)MediaWiki\Api\ApiMain->executeAction()
#16/srv/mediawiki/php-1.46.0-wmf.14/extensions/DiscussionTools/includes/ApiDiscussionToolsTrait.php(123)MediaWiki\Api\ApiMain->execute()
#17/srv/mediawiki/php-1.46.0-wmf.14/extensions/DiscussionTools/includes/ApiDiscussionToolsPreview.php(50)MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsPreview->previewMessage(string, MediaWiki\Title\Title, array, array)
#18/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiMain.php(2061)MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsPreview->execute()
#19/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiMain.php(965)MediaWiki\Api\ApiMain->executeAction()
#20/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiMain.php(936)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#21/srv/mediawiki/php-1.46.0-wmf.14/includes/Api/ApiEntryPoint.php(138)MediaWiki\Api\ApiMain->execute()
#22/srv/mediawiki/php-1.46.0-wmf.14/includes/MediaWikiEntryPoint.php(180)MediaWiki\Api\ApiEntryPoint->execute()
#23/srv/mediawiki/php-1.46.0-wmf.14/api.php(30)MediaWiki\MediaWikiEntryPoint->run()
#24/srv/mediawiki/w/api.php(3)require(string)
#25{main}
Notes

Started with 1.46.0-wmf.14. Extremely low volume

Details

Request URL
https://fi.wikipedia.org/w/api.php
Related Changes in Gerrit:

Event Timeline

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

[mediawiki/core@master] CoreMagicVariables: Remove zero-argument form for {{#isbn}}

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

Change #1239132 merged by jenkins-bot:

[mediawiki/core@master] CoreMagicVariables: Remove zero-argument form for {{#isbn}}

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