Page MenuHomePhabricator

PHP Warning: array_merge(): Expected parameter 1 to be an array, null given
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Warning: array_merge(): Expected parameter 1 to be an array, null given
exception.trace
from /srv/mediawiki/php-1.42.0-wmf.18/extensions/Kartographer/includes/Tag/ParsoidDomProcessor.php(99)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.42.0-wmf.18/extensions/Kartographer/includes/Tag/ParsoidDomProcessor.php(99): array_merge(NULL, array)
#2 /srv/mediawiki/php-1.42.0-wmf.18/extensions/Kartographer/includes/Tag/ParsoidDomProcessor.php(57): Kartographer\Tag\ParsoidDomProcessor->processKartographerNode(Wikimedia\Parsoid\DOM\Element, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, array)
#3 [internal function]: Kartographer\Tag\ParsoidDomProcessor->Kartographer\Tag\{closure}(Wikimedia\Parsoid\DOM\Element, NULL)
#4 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(111): call_user_func(Closure, Wikimedia\Parsoid\DOM\Element, NULL)
#5 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(189): Wikimedia\Parsoid\Utils\DOMTraverser->callHandlers(Wikimedia\Parsoid\DOM\Element, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, NULL)
#6 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(204): Wikimedia\Parsoid\Utils\DOMTraverser->traverseInternal(boolean, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element, NULL)
#7 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(204): Wikimedia\Parsoid\Utils\DOMTraverser->traverseInternal(boolean, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element, NULL)
#8 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(204): Wikimedia\Parsoid\Utils\DOMTraverser->traverseInternal(boolean, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element, NULL)
#9 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Utils/DOMTraverser.php(145): Wikimedia\Parsoid\Utils\DOMTraverser->traverseInternal(boolean, Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element, NULL)
#10 /srv/mediawiki/php-1.42.0-wmf.18/extensions/Kartographer/includes/Tag/ParsoidDomProcessor.php(61): Wikimedia\Parsoid\Utils\DOMTraverser->traverse(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element)
#11 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(149): Kartographer\Tag\ParsoidDomProcessor->wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\DOM\Element, array)
#12 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(908): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->Wikimedia\Parsoid\Wt2Html\{closure}(Wikimedia\Parsoid\DOM\Element, array, boolean)
#13 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(949): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->doPostProcess(Wikimedia\Parsoid\DOM\Element)
#14 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(967): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->process(Wikimedia\Parsoid\DOM\Element)
#15 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(170): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#16 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(279): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#17 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Wikitext/ContentModelHandler.php(161): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#18 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Parsoid.php(191): Wikimedia\Parsoid\Wikitext\ContentModelHandler->toDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI)
#19 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/src/Parsoid.php(232): Wikimedia\Parsoid\Parsoid->parseWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, MediaWiki\Parser\ParserOutput, array)
#20 /srv/mediawiki/php-1.42.0-wmf.18/includes/parser/Parsoid/ParsoidParser.php(149): Wikimedia\Parsoid\Parsoid->wikitext2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array, NULL, MediaWiki\Parser\ParserOutput)
#21 /srv/mediawiki/php-1.42.0-wmf.18/includes/parser/Parsoid/ParsoidParser.php(253): MediaWiki\Parser\Parsoid\ParsoidParser->genParserOutput(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOptions)
#22 /srv/mediawiki/php-1.42.0-wmf.18/includes/content/WikitextContentHandler.php(373): MediaWiki\Parser\Parsoid\ParsoidParser->parse(string, MediaWiki\Title\Title, ParserOptions, boolean, boolean, integer)
#23 /srv/mediawiki/php-1.42.0-wmf.18/includes/content/ContentHandler.php(1658): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#24 /srv/mediawiki/php-1.42.0-wmf.18/includes/content/Renderer/ContentRenderer.php(67): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#25 /srv/mediawiki/php-1.42.0-wmf.18/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, MediaWiki\Revision\RevisionStoreRecord, ParserOptions, boolean)
#26 /srv/mediawiki/php-1.42.0-wmf.18/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#27 /srv/mediawiki/php-1.42.0-wmf.18/includes/Revision/RevisionRenderer.php(226): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#28 /srv/mediawiki/php-1.42.0-wmf.18/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, ParserOptions, array)
#29 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#30 /srv/mediawiki/php-1.42.0-wmf.18/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#31 /srv/mediawiki/php-1.42.0-wmf.18/includes/poolcounter/PoolWorkArticleView.php(87): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#32 /srv/mediawiki/php-1.42.0-wmf.18/includes/poolcounter/PoolWorkArticleViewCurrent.php(107): MediaWiki\PoolCounter\PoolWorkArticleView->renderRevision()
#33 /srv/mediawiki/php-1.42.0-wmf.18/includes/poolcounter/PoolCounterWork.php(172): MediaWiki\PoolCounter\PoolWorkArticleViewCurrent->doWork()
#34 /srv/mediawiki/php-1.42.0-wmf.18/includes/page/ParserOutputAccess.php(307): MediaWiki\PoolCounter\PoolCounterWork->execute()
#35 /srv/mediawiki/php-1.42.0-wmf.18/includes/parser/Parsoid/ParsoidOutputAccess.php(178): MediaWiki\Page\ParserOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#36 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(755): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer, boolean)
#37 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(563): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutputInternal(ParserOptions)
#38 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(659): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutput()
#39 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Handler/ParsoidHandler.php(743): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getPageBundle()
#40 /srv/mediawiki/php-1.42.0-wmf.18/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(92): MediaWiki\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#41 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Router.php(561): MWParsoid\Rest\Handler\PageHandler->execute()
#42 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/Router.php(452): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#43 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/EntryPoint.php(195): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#44 /srv/mediawiki/php-1.42.0-wmf.18/includes/Rest/EntryPoint.php(135): MediaWiki\Rest\EntryPoint->execute()
#45 /srv/mediawiki/php-1.42.0-wmf.18/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#46 /srv/mediawiki/w/rest.php(3): require(string)
#47 {main}
Impact
Notes

Details

Request URL
https://en.wikivoyage.org/w/rest.php/en.wikivoyage.org/v3/page/pagebundle/User_talk%3AMatroc%2FLaboratory/3872868

Event Timeline

Change 1009523 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Isabelle Hurbain-Palatin):

[mediawiki/extensions/Kartographer@master] Make showGroups array contiguous

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

Change 1009527 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Add test case covering duplicates in group="…"

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

Change 1009523 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Make showGroups array contiguous

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

Change 1009527 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Add test case covering duplicates in group="…"

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