Page MenuHomePhabricator

Uncaught Error: Cannot insert ... even after closing all containing nodes
Open, Needs TriagePublicPRODUCTION ERROR

Description

Appearing on Flow user talk pages as well as other pages. Error comes in different forms, for example it might be a mwHeading or a mwTable that cannot be inserted.

https://logstash.wikimedia.org/app/kibana#/doc/logstash-*/logstash-2020.08.05/clienterror?id=AXO9_q4d3_NNwgAUcXdD&_g=h@6ed7b0f

error
Error: Cannot insert mwHeading even after closing all containing nodes (at index 2)
trace
at closeElement  URL1:245:995
at VeDmDocument.ve.dm.Document.fixupInsertion  URL1:247:461
at VeDmDocument.ve.dm.Document.fixupInsertion  URL1:247:827
at Object.ve.dm.TransactionBuilder.static.newFromDocumentInsertion  URL1:123:752
at VeDmSurfaceFragment.ve.dm.SurfaceFragment.insertDocument  URL1:212:622
at VeCeSurface.ve.ce.Surface.afterPasteInsertExternalData  URL1:486:728
at VeCeSurface.ve.ce.Surface.afterPasteAddToFragmentFromExternal  URL1:486:215
at VeCeSurface.ve.ce.Surface.afterPaste  URL1:479:33
at URL1:474:859

URL1: https://www.mediawiki.org/w/load.php?lang=en&modules=ext.visualEditor.base%2Ccore%2Cdiffing%2Cmediawiki%2Cmwcore%2Csanitize%2Cswitching%2Cwelcome%7Cext.visualEditor.core.utils&skin=vector&version=1c2m0

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson renamed this task from Uncaught Error: Cannot insert mwHeading even after closing all containing nodes (at index 2) to Uncaught Error: Cannot insert (mwHeading, mwTable, paragraph) even after closing all containing nodes (at index <num>).Oct 14 2020, 6:55 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson renamed this task from Uncaught Error: Cannot insert (mwHeading, mwTable, paragraph) even after closing all containing nodes (at index <num>) to Uncaught Error: Cannot insert (mwHeading, mwTable, paragraph, mwTransclusionBlock) even after closing all containing nodes (at index <num>).Oct 15 2020, 3:36 PM
Krinkle renamed this task from Uncaught Error: Cannot insert (mwHeading, mwTable, paragraph, mwTransclusionBlock) even after closing all containing nodes (at index <num>) to Uncaught Error: Cannot insert ... even after closing all containing nodes.Mar 8 2022, 9:58 PM
Krinkle updated the task description. (Show Details)
Krinkle subscribed.

Added an example of one (unchanged) error message exactly as logged.

Restricted Application changed the subtype of this task from "Task" to "Production Error". · View Herald TranscriptOct 27 2025, 11:51 PM