Page MenuHomePhabricator

Argument 1 passed to Parsoid\Utils\PHPUtils::encodeURIComponent() must be of the type string, integer given
Closed, ResolvedPublic

Description

message
Argument 1 passed to Parsoid\Utils\PHPUtils::encodeURIComponent() must be of the type string, integer given, called in /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/ExtensionHandler.php on line 109

Details

Request ID
XcggJApAIDsAAJrRv7gAAACD
Request URL
https://fr.wikisource.org/w/rest.php/fr.wikisource.org/v3/page/pagebundle/L%E2%80%99Id%C3%A9e_du_%C2%AB_Retour_%C3%A9ternel_%C2%BB_de_Nietzsche/6387713
Stack Trace
exception.trace
#0 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/ExtensionHandler.php(109): Parsoid\Utils\PHPUtils::encodeURIComponent(integer)
#1 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/ExtensionHandler.php(168): Parsoid\Wt2Html\TT\ExtensionHandler->mangleParserResponse(Parsoid\Tokens\SelfclosingTagTk, array)
#2 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/ExtensionHandler.php(262): Parsoid\Wt2Html\TT\ExtensionHandler->onExtension(Parsoid\Tokens\SelfclosingTagTk)
#3 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/TokenHandler.php(211): Parsoid\Wt2Html\TT\ExtensionHandler->onTag(Parsoid\Tokens\SelfclosingTagTk)
#4 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TokenTransformManager.php(120): Parsoid\Wt2Html\TT\TokenHandler->process(array)
#5 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TokenTransformManager.php(192): Parsoid\Wt2Html\TokenTransformManager->processChunk(array)
#6 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TokenTransformManager.php(190): Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#7 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/HTML5TreeBuilder.php(430): Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#8 [internal function]: Parsoid\Wt2Html\HTML5TreeBuilder->processChunkily(string, array)
#9 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/DOMPostProcessor.php(897): Generator->current()
#10 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/ParserPipeline.php(148): Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#11 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/ParserPipeline.php(198): Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#12 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/ParserPipelineFactory.php(299): Parsoid\Wt2Html\ParserPipeline->parseToplevelDoc(string, array)
#13 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/WikitextContentModelHandler.php(78): Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#14 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Parsoid.php(86): Parsoid\WikitextContentModelHandler->toHTML(Parsoid\Config\Env)
#15 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Parsoid.php(113): Parsoid\Parsoid->parseWikitext(MWParsoid\Config\PageConfig, array)
#16 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/extension/src/Rest/Handler/ParsoidHandler.php(546): Parsoid\Parsoid->wikitext2html(MWParsoid\Config\PageConfig, array, NULL)
#17 /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/extension/src/Rest/Handler/PageHandler.php(55): MWParsoid\Rest\Handler\ParsoidHandler->wt2html(Parsoid\Config\Env, array)
#18 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/Router.php(315): MWParsoid\Rest\Handler\PageHandler->execute()
#19 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/Router.php(285): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#20 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/EntryPoint.php(116): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#21 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/EntryPoint.php(83): MediaWiki\Rest\EntryPoint->execute()
#22 /srv/mediawiki/php-1.35.0-wmf.5/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#23 /srv/mediawiki/w/rest.php(3): require(string)
#24 {main}
Related Gerrit Patches:
mediawiki/services/parsoid : masterAccount for array key casting

Event Timeline

ssastry created this task.Sun, Nov 10, 8:26 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSun, Nov 10, 8:26 PM
ssastry triaged this task as Medium priority.Sun, Nov 10, 8:26 PM
ssastry moved this task from Backlog to Bugs, Notices, Crashers on the Parsoid-PHP board.
ssastry renamed this task from Argument 1 passed to Parsoid\Utils\PHPUtils::encodeURIComponent() must be of the type string, integer given, called in /srv/deployment/parsoid/deploy-cache/revs/7e86f835f6ae15749b3665620891f5ec8d03311f/src/src/Wt2Html/TT/ExtensionHandler.php on line 109 to Argument 1 passed to Parsoid\Utils\PHPUtils::encodeURIComponent() must be of the type string, integer given.Mon, Nov 11, 11:35 PM
Arlolra claimed this task.Thu, Nov 14, 9:58 PM

Change 550968 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] Account for array key casting

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

Change 550968 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Account for array key casting

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

Arlolra closed this task as Resolved.Thu, Nov 14, 11:16 PM

Mentioned in SAL (#wikimedia-operations) [2019-11-18T21:56:52Z] <arlolra> Upgraded Parsoid to 2245b8f (T237886, T237103, T236864, T237569, T236930, T237463, T236867, T234266)