Page MenuHomePhabricator

[Bug] Invalid State Error in MobileFormatter
Closed, DuplicatePublic

Description

Steps to Reproduce

  1. Visit https://en.m.wikisource.org/wiki/Charter_of_Fundamental_Rights_of_the_European_Union OR https://ur.m.wikipedia.org/wiki/580%D8%A1_%DA%A9%DB%8C_%D8%AF%DB%81%D8%A7%D8%A6%DB%8C OR https://es.wikisource.org/wiki/Acuerdo_Final_para_la_Terminaci%C3%B3n_del_Conflicto_y_la_Construcci%C3%B3n_de_una_Paz_Estable_y_Duradera:_05
  2. Review the logstash https://logstash.wikimedia.org/app/kibana#/dashboard/Reading-Web

Expected Results

  • No warnings

Actual Results

PHP Warning: Invalid State Error
#0 /srv/mediawiki/php-1.32.0-wmf.10/extensions/MobileFrontend/includes/MobileFormatter.php(520): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.10/extensions/MobileFrontend/includes/MobileFormatter.php(199): MobileFormatter->makeSections(DOMDocument, array, array)
#2 /srv/mediawiki/php-1.32.0-wmf.10/extensions/MobileFrontend/includes/MobileFrontend.body.php(65): MobileFormatter->filterContent(boolean, boolean, boolean, boolean)
#3 /srv/mediawiki/php-1.32.0-wmf.10/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(231): ExtMobileFrontend::domParse(OutputPage, string, boolean)
#4 /srv/mediawiki/php-1.32.0-wmf.10/includes/Hooks.php(174): MobileFrontendHooks::onOutputPageBeforeHTML(OutputPage, string)
#5 /srv/mediawiki/php-1.32.0-wmf.10/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
#6 /srv/mediawiki/php-1.32.0-wmf.10/includes/OutputPage.php(1899): Hooks::runWithoutAbort(string, array)
#7 /srv/mediawiki/php-1.32.0-wmf.10/includes/OutputPage.php(1911): OutputPage->addParserOutputText(ParserOutput, array)
#8 /srv/mediawiki/php-1.32.0-wmf.10/includes/page/Article.php(546): OutputPage->addParserOutput(ParserOutput, array)
#9 /srv/mediawiki/php-1.32.0-wmf.10/includes/actions/ViewAction.php(68): Article->view()
#10 /srv/mediawiki/php-1.32.0-wmf.10/includes/MediaWiki.php(500): ViewAction->show()
#11 /srv/mediawiki/php-1.32.0-wmf.10/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#12 /srv/mediawiki/php-1.32.0-wmf.10/includes/MediaWiki.php(867): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.32.0-wmf.10/includes/MediaWiki.php(524): MediaWiki->main()
#14 /srv/mediawiki/php-1.32.0-wmf.10/index.php(42): MediaWiki->run()
#15 /srv/mediawiki/w/index.php(3): include(string)
#16 {main}

There are are about 2000 reports at time of writing but each occurrence generates dozens of exceptions.

Detailed discussion in T151838.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 4 2018, 4:10 PM
Niedzielski updated the task description. (Show Details)Jul 4 2018, 4:11 PM