Page MenuHomePhabricator

PHP Notice: Uninitialized string offset: -1
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.37

message
PHP Notice: Uninitialized string offset: -1

Impact

Notes

Details

Request URL
https://office.wikimedia.org/w/rest.php/office.wikimedia.org/v3/transform/html/to/wikitext/Inclusive_Communications_Guide/290845
Stack Trace
exception.trace
from /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Html2Wt/SelectiveSerializer.php(123)
#0 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Html2Wt/SelectiveSerializer.php(123): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Html2Wt/SelectiveSerializer.php(178): Wikimedia\Parsoid\Html2Wt\SelectiveSerializer->wrapTextChildrenOfNode(DOMElement, string)
#2 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Html2Wt/SelectiveSerializer.php(202): Wikimedia\Parsoid\Html2Wt\SelectiveSerializer->preprocessDOM(DOMElement)
#3 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Core/WikitextContentModelHandler.php(168): Wikimedia\Parsoid\Html2Wt\SelectiveSerializer->serializeDOM(DOMDocument)
#4 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/src/Parsoid.php(281): Wikimedia\Parsoid\Core\WikitextContentModelHandler->fromDOM(Wikimedia\Parsoid\Config\Env, Wikimedia\Parsoid\Core\SelserData)
#5 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(828): Wikimedia\Parsoid\Parsoid->dom2wikitext(MWParsoid\Config\PageConfig, DOMDocument, array, Wikimedia\Parsoid\Core\SelserData)
#6 /srv/mediawiki/php-1.36.0-wmf.37/vendor/wikimedia/parsoid/extension/src/Rest/Handler/TransformHandler.php(133): MWParsoid\Rest\Handler\ParsoidHandler->html2wt(MWParsoid\Config\PageConfig, array, string)
#7 /srv/mediawiki/php-1.36.0-wmf.37/includes/Rest/Router.php(395): MWParsoid\Rest\Handler\TransformHandler->execute()
#8 /srv/mediawiki/php-1.36.0-wmf.37/includes/Rest/Router.php(322): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\TransformHandler)
#9 /srv/mediawiki/php-1.36.0-wmf.37/includes/Rest/EntryPoint.php(165): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#10 /srv/mediawiki/php-1.36.0-wmf.37/includes/Rest/EntryPoint.php(130): MediaWiki\Rest\EntryPoint->execute()
#11 /srv/mediawiki/php-1.36.0-wmf.37/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#12 /srv/mediawiki/w/rest.php(3): require(string)
#13 {main}

Event Timeline

Change 676698 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/services/parsoid@master] Selective Serializer: Handle empty text nodes

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

ssastry triaged this task as Low priority.
ssastry moved this task from Needs Triage to Bugs & Crashers on the Parsoid board.

Change 676698 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Selective Serializer: Handle empty text nodes

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

Change 677983 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a32

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

Change 677983 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a32

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