Page MenuHomePhabricator

Call to a member function getAttribute() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.26

message
Call to a member function getAttribute() on null

Details

Request ID
085aaa00-799c-11ea-b044-55d460a3552d
Request URL
https://sq.wikipedia.org/w/rest.php/sq.wikipedia.org/v3/transform/html/to/wikitext/Hannah_Bast
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/EncapsulatedContentHandler.php(68): Wikimedia\Parsoid\Ext\Cite\Ref->fromDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, boolean)
#1 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1275): Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#2 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#3 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1373): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#4 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(684): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#5 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(707): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement, NULL)
#6 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1646): Wikimedia\Parsoid\Html2Wt\SerializerState->kickOffSerialize(DOMElement)
#7 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(229): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOM(DOMElement)
#8 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Ext/ParsoidExtensionAPI.php(594): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeHTML(array, string)
#9 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Ext/Cite/References.php(506): Wikimedia\Parsoid\Ext\ParsoidExtensionAPI->serializeHTML(array, string)
#10 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/EncapsulatedContentHandler.php(68): Wikimedia\Parsoid\Ext\Cite\References->fromDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, boolean)
#11 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1275): Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#12 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#13 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1373): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#14 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(684): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#15 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/FallbackHTMLHandler.php(70): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement)
#16 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1275): Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#17 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler)
#18 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1373): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler)
#19 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(684): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#20 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(707): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement, NULL)
#21 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1646): Wikimedia\Parsoid\Html2Wt\SerializerState->kickOffSerialize(DOMElement)
#22 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(107): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOM(DOMElement)
#23 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/src/Parsoid.php(267): Wikimedia\Parsoid\Core\WikitextContentModelHandler->fromDOM(Wikimedia\Parsoid\Config\Env, DOMDocument, NULL)
#24 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(782): Wikimedia\Parsoid\Parsoid->html2wikitext(MWParsoid\Config\PageConfig, string, array, NULL)
#25 /srv/mediawiki/php-1.35.0-wmf.26/vendor/wikimedia/parsoid/extension/src/Rest/Handler/TransformHandler.php(95): MWParsoid\Rest\Handler\ParsoidHandler->html2wt(MWParsoid\Config\PageConfig, array, string)
#26 /srv/mediawiki/php-1.35.0-wmf.26/includes/Rest/Router.php(353): MWParsoid\Rest\Handler\TransformHandler->execute()
#27 /srv/mediawiki/php-1.35.0-wmf.26/includes/Rest/Router.php(308): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\TransformHandler)
#28 /srv/mediawiki/php-1.35.0-wmf.26/includes/Rest/EntryPoint.php(138): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#29 /srv/mediawiki/php-1.35.0-wmf.26/includes/Rest/EntryPoint.php(105): MediaWiki\Rest\EntryPoint->execute()
#30 /srv/mediawiki/php-1.35.0-wmf.26/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#31 /srv/mediawiki/w/rest.php(3): require(string)
#32 {main}

Event Timeline

ssastry triaged this task as Medium priority.Apr 8 2020, 7:47 PM
ssastry moved this task from Needs Triage to Bugs & Crashers on the Parsoid board.

Still happening as of today:

ReqId: 4d3600a0-13c2-11eb-beb1-61353c85a57f

Version: wmf-1.36.0-wmf.13

#0 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/EncapsulatedContentHandler.php(71): Wikimedia\Parsoid\Ext\Cite\Ref->domToWikitext(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, boolean)
#1 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1284): Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#2 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#3 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1382): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#4 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(682): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#5 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(707): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement, NULL)
#6 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1654): Wikimedia\Parsoid\Html2Wt\SerializerState->kickOffSerialize(DOMElement)
#7 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(228): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOM(DOMElement)
#8 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(238): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->domToWikitext(array, DOMElement)
#9 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Ext/ParsoidExtensionAPI.php(664): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->htmlToWikitext(array, string)
#10 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Ext/Cite/References.php(624): Wikimedia\Parsoid\Ext\ParsoidExtensionAPI->htmlToWikitext(array, string)
#11 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/EncapsulatedContentHandler.php(71): Wikimedia\Parsoid\Ext\Cite\References->domToWikitext(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI, DOMElement, boolean)
#12 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1284): Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#13 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#14 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1382): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#15 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(682): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#16 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/FallbackHTMLHandler.php(75): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement)
#17 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1284): Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler->handle(DOMElement, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#18 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOMNode(DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler)
#19 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1382): call_user_func(array, DOMElement, Wikimedia\Parsoid\Html2Wt\DOMHandlers\FallbackHTMLHandler)
#20 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(682): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(DOMElement)
#21 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(707): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(DOMElement, NULL)
#22 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1654): Wikimedia\Parsoid\Html2Wt\SerializerState->kickOffSerialize(DOMElement)
#23 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(114): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOM(DOMElement)
#24 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/src/Parsoid.php(280): Wikimedia\Parsoid\Core\WikitextContentModelHandler->fromDOM(Wikimedia\Parsoid\Config\Env, DOMDocument, NULL)
#25 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(825): Wikimedia\Parsoid\Parsoid->html2wikitext(MWParsoid\Config\PageConfig, string, array, NULL)
#26 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/extension/src/Rest/Handler/TransformHandler.php(133): MWParsoid\Rest\Handler\ParsoidHandler->html2wt(MWParsoid\Config\PageConfig, array, string)
#27 /srv/mediawiki/php-1.36.0-wmf.13/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(1047): MWParsoid\Rest\Handler\TransformHandler->realExecute()
#28 /srv/mediawiki/php-1.36.0-wmf.13/includes/Rest/Router.php(381): MWParsoid\Rest\Handler\ParsoidHandler->execute()
#29 /srv/mediawiki/php-1.36.0-wmf.13/includes/Rest/Router.php(316): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\TransformHandler)
#30 /srv/mediawiki/php-1.36.0-wmf.13/includes/Rest/EntryPoint.php(155): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#31 /srv/mediawiki/php-1.36.0-wmf.13/includes/Rest/EntryPoint.php(119): MediaWiki\Rest\EntryPoint->execute()
#32 /srv/mediawiki/php-1.36.0-wmf.13/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#33 /srv/mediawiki/w/rest.php(3): require(string)
#34 {main}

Change 643286 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] Fix porting bug from 71662ea

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

Change 643286 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Fix porting bug from 71662ea

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

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

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

Change 644221 had a related patch set uploaded (by C. Scott Ananian; owner: Subramanya Sastry):
[mediawiki/vendor@wmf/1.36.0-wmf.20] Bump wikimedia/parsoid to 0.13.0-a18

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

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

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

Change 644221 merged by jenkins-bot:
[mediawiki/vendor@wmf/1.36.0-wmf.20] Bump wikimedia/parsoid to 0.13.0-a18

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