Page MenuHomePhabricator

Preprocessor_DOM::preprocessToObj: generated node count limit exceeded
Closed, DuplicatePublic

Description

Hello,

I have an internal error trying to edit the frwiki page Castelnaudary.

I activated the PHP7 beta option.

Despite several refreshes and purging the cache, the problem persists as long as the PHP7 beta is enabled.

If I disable PHP7, it becomes possible to edit the page. As soon as I re-activates PHP7, the fatal error returns.

Here is the complete error message:

2019-03-24 20:38:35 [XJfqyApAMFIAABsfD4oAAAAU] mw1247 frwiki 1.33.0-wmf.22 exception ERROR: [XJfqyApAMFIAABsfD4oAAAAU] /w/index.php?title=Castelnaudary&action=edit   MWException from line 162 of /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Preprocessor_DOM.php: Preprocessor_DOM::preprocessToObj: generated node count limit exceeded {"exception_id":"XJfqyApAMFIAABsfD4oAAAAU","exception_url":"/w/index.php?title=Castelnaudary&action=edit","caught_by":"mwe_handler"} 
[Exception MWException] (/srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Preprocessor_DOM.php:162) Preprocessor_DOM::preprocessToObj: generated node count limit exceeded
  #0 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(2975): Preprocessor_DOM->preprocessToObj(string, integer)
  #1 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(3581): Parser->preprocessToDom(string, integer)
  #2 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(3334): Parser->getTemplateDom(Title)
  #3 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Preprocessor_DOM.php(1279): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
  #4 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(3396): PPFrame_DOM->expand(DOMElement)
  #5 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Preprocessor_DOM.php(1279): Parser->braceSubstitution(array, PPFrame_DOM)
  #6 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(3036): PPFrame_DOM->expand(DOMElement, integer)
  #7 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(1354): Parser->replaceVariables(string)
  #8 /srv/mediawiki/php-1.33.0-wmf.22/includes/parser/Parser.php(482): Parser->internalParse(string)
  #9 /srv/mediawiki/php-1.33.0-wmf.22/includes/content/WikitextContent.php(369): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
  #10 /srv/mediawiki/php-1.33.0-wmf.22/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
  #11 /srv/mediawiki/php-1.33.0-wmf.22/includes/EditPage.php(4086): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
  #12 /srv/mediawiki/php-1.33.0-wmf.22/includes/EditPage.php(3993): EditPage->doPreviewParse(WikitextContent)
  #13 /srv/mediawiki/php-1.33.0-wmf.22/includes/EditPage.php(2772): EditPage->getPreviewText()
  #14 /srv/mediawiki/php-1.33.0-wmf.22/includes/EditPage.php(719): EditPage->showEditForm()
  #15 /srv/mediawiki/php-1.33.0-wmf.22/includes/actions/EditAction.php(60): EditPage->edit()
  #16 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(501): EditAction->show()
  #17 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
  #18 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(867): MediaWiki->performRequest()
  #19 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(517): MediaWiki->main()
  #20 /srv/mediawiki/php-1.33.0-wmf.22/index.php(42): MediaWiki->run()
  #21 /srv/mediawiki/w/index.php(3): require(string)
  #22 {main}

Thank you.

(sorry for my bad English)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 24 2019, 8:41 PM
Reedy added a project: MediaWiki-Parser.
Reedy updated the task description. (Show Details)
Reedy renamed this task from Fatal error « MWException » on frwiki page "Castelnaudary" to Preprocessor_DOM::preprocessToObj: generated node count limit exceeded.Mar 24 2019, 9:08 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Wed, Aug 28, 11:07 PM