Page MenuHomePhabricator

PHP Notice: Undefined property: DOMElement::$ownerDocument (and related cascading errors)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.14

message
PHP Notice: Undefined property: DOMElement::$ownerDocument

Impact

Notes

hasAttribute(), getAttribute(), setAttribute(), getBag() are all other calls that fail.

Details

Request ID
2c7a2d61-4a9b-4748-b958-62716aeab835
Request URL
https://en.wikipedia.org/w/rest.php/en.wikipedia.org/v3/page/pagebundle/Economy_of_the_Netherlands/984878736
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Utils/DOMDataUtils.php(88): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Utils/DOMDataUtils.php(56): Wikimedia\Parsoid\Utils\DOMDataUtils::setNodeData(DOMElement, stdClass)
#2 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Utils/DOMDataUtils.php(148): Wikimedia\Parsoid\Utils\DOMDataUtils::getNodeData(DOMElement)
#3 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Ext/DOMDataUtils.php(40): Wikimedia\Parsoid\Utils\DOMDataUtils::getDataMw(DOMElement)
#4 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Ext/Cite/References.php(379): Wikimedia\Parsoid\Ext\DOMDataUtils::getDataMw(DOMElement)
#5 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Ext/Cite/References.php(540): Wikimedia\Parsoid\Ext\Cite\References::insertReferencesIntoDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, Wikimedia\Parsoid\Ext\Cite\ReferencesData, boolean)
#6 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Ext/Cite/References.php(550): Wikimedia\Parsoid\Ext\Cite\References::processRefs(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\Ext\Cite\ReferencesData, DOMElement)
#7 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Ext/Cite/RefProcessor.php(24): Wikimedia\Parsoid\Ext\Cite\References::processRefs(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, Wikimedia\Parsoid\Ext\Cite\ReferencesData, DOMElement)
#8 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(167): Wikimedia\Parsoid\Ext\Cite\RefProcessor->wtPostprocess(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, array, boolean)
#9 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(841): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->Wikimedia\Parsoid\Wt2Html\{closure}(DOMElement, array, boolean)
#10 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(890): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->doPostProcess(DOMElement)
#11 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(907): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->process(DOMElement)
#12 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(152): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#13 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(204): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#14 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(299): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseToplevelDoc(string, array)
#15 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(99): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#16 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Parsoid.php(161): Wikimedia\Parsoid\Core\WikitextContentModelHandler->toDOM(Wikimedia\Parsoid\Config\Env)
#17 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/src/Parsoid.php(193): Wikimedia\Parsoid\Parsoid->parseWikitext(MWParsoid\Config\PageConfig, array)
#18 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(589): Wikimedia\Parsoid\Parsoid->wikitext2html(MWParsoid\Config\PageConfig, array, NULL)
#19 /srv/mediawiki/php-1.36.0-wmf.14/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(88): MWParsoid\Rest\Handler\ParsoidHandler->wt2html(MWParsoid\Config\PageConfig, array)
#20 /srv/mediawiki/php-1.36.0-wmf.14/includes/Rest/Router.php(381): MWParsoid\Rest\Handler\PageHandler->execute()
#21 /srv/mediawiki/php-1.36.0-wmf.14/includes/Rest/Router.php(316): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#22 /srv/mediawiki/php-1.36.0-wmf.14/includes/Rest/EntryPoint.php(155): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#23 /srv/mediawiki/php-1.36.0-wmf.14/includes/Rest/EntryPoint.php(119): MediaWiki\Rest\EntryPoint->execute()
#24 /srv/mediawiki/php-1.36.0-wmf.14/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#25 /srv/mediawiki/w/rest.php(3): require(string)
#26 {main}

Event Timeline

ssastry triaged this task as Medium priority.
ssastry renamed this task from PHP Notice: Undefined property: DOMElement::$ownerDocument to PHP Notice: Undefined property: DOMElement::$ownerDocument (and related cascading errors).Oct 22 2020, 10:58 PM
ssastry updated the task description. (Show Details)

Change 636098 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] Traverse with inEmbeddedContent for ref in ref

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

Change 636098 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Traverse with inEmbeddedContent for ref in ref

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

Isolated case was,

<ref name="hiho">off to work</ref>
{{#tag:ref|<i>we go <ref name="ohno" /></i>|name="hiho"}}

Change 638161 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a14

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

Change 638161 merged by jenkins-bot:
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a14

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