Page MenuHomePhabricator

PHP Notice: Undefined property: stdClass::$params
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined property: stdClass::$params
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(729)
#0 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(729): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(970): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializePart(Wikimedia\Parsoid\Html2Wt\SerializerState, string, Wikimedia\Parsoid\DOM\Compat\Element, string, stdClass, array, NULL, NULL)
#2 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/EncapsulatedContentHandler.php(46): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeFromParts(Wikimedia\Parsoid\Html2Wt\SerializerState, Wikimedia\Parsoid\DOM\Compat\Element, array)
#3 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1242): Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler->handle(Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#4 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNodeInternal(Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#5 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1334): call_user_func(array, Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\DOMHandlers\EncapsulatedContentHandler)
#6 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(706): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(Wikimedia\Parsoid\DOM\Compat\Element)
#7 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/DOMHandlers/PHandler.php(31): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(Wikimedia\Parsoid\DOM\Compat\Element)
#8 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1242): Wikimedia\Parsoid\Html2Wt\DOMHandlers\PHandler->handle(Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\SerializerState, boolean)
#9 [internal function]: Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNodeInternal(Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\DOMHandlers\PHandler)
#10 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1334): call_user_func(array, Wikimedia\Parsoid\DOM\Compat\Element, Wikimedia\Parsoid\Html2Wt\DOMHandlers\PHandler)
#11 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(706): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeNode(Wikimedia\Parsoid\DOM\Compat\Element)
#12 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/SerializerState.php(732): Wikimedia\Parsoid\Html2Wt\SerializerState->serializeChildren(Wikimedia\Parsoid\DOM\Compat\Element, NULL)
#13 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/WikitextSerializer.php(1603): Wikimedia\Parsoid\Html2Wt\SerializerState->kickOffSerialize(Wikimedia\Parsoid\DOM\Compat\Element)
#14 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Html2Wt/SelectiveSerializer.php(236): Wikimedia\Parsoid\Html2Wt\WikitextSerializer->serializeDOM(Wikimedia\Parsoid\DOM\Compat\Element, boolean)
#15 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(168): Wikimedia\Parsoid\Html2Wt\SelectiveSerializer->serializeDOM(Wikimedia\Parsoid\DOM\Compat\Document)
#16 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/src/Parsoid.php(285): Wikimedia\Parsoid\Core\WikitextContentModelHandler->fromDOM(Wikimedia\Parsoid\Config\Env, Wikimedia\Parsoid\Core\SelserData)
#17 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(827): Wikimedia\Parsoid\Parsoid->dom2wikitext(MWParsoid\Config\PageConfig, Wikimedia\Parsoid\DOM\Compat\Document, array, Wikimedia\Parsoid\Core\SelserData)
#18 /srv/mediawiki/php-1.38.0-wmf.1/vendor/wikimedia/parsoid/extension/src/Rest/Handler/TransformHandler.php(133): MWParsoid\Rest\Handler\ParsoidHandler->html2wt(MWParsoid\Config\PageConfig, array, string)
#19 /srv/mediawiki/php-1.38.0-wmf.1/includes/Rest/Router.php(403): MWParsoid\Rest\Handler\TransformHandler->execute()
#20 /srv/mediawiki/php-1.38.0-wmf.1/includes/Rest/Router.php(330): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\TransformHandler)
#21 /srv/mediawiki/php-1.38.0-wmf.1/includes/Rest/EntryPoint.php(165): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#22 /srv/mediawiki/php-1.38.0-wmf.1/includes/Rest/EntryPoint.php(130): MediaWiki\Rest\EntryPoint->execute()
#23 /srv/mediawiki/php-1.38.0-wmf.1/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#24 /srv/mediawiki/w/rest.php(3): require(string)
#25 {main}
Impact
Notes

Details

Request URL
https://pl.wikipedia.org/w/rest.php/pl.wikipedia.org/v3/transform/pagebundle/to/wikitext/Cornelius_Weizen_Bier/61577061

Event Timeline

ssastry triaged this task as Medium priority.Sep 25 2021, 2:07 PM
ssastry created this task.
Arlolra added a subscriber: Arlolra.

Maybe not ...

Change 724178 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] Account for clients leaving off the template params array in data-mw

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

Change 724178 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Account for clients leaving off the template params array in data-mw

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

Change 726027 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/vendor@master] Bump parsoid to 0.15.0-a2

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

Change 726027 merged by jenkins-bot:

[mediawiki/vendor@master] Bump parsoid to 0.15.0-a2

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