Page MenuHomePhabricator

Editing "Cite journal" template citation throws TypeError from VeCeMWTransclusionInlineNode
Closed, ResolvedPublic

Description

  1. Edit https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Sandbox&oldid=381685
  2. Select [2].
  3. Make some minor change, eg. change "Source date" from 1981 to 1980.
  4. Press "Apply changes".

Console error:

Uncaught TypeError: Cannot read property 'element' of null
    at VeCeMWTransclusionInlineNode.ve.ce.View.initialize
    at VeCeMWTransclusionInlineNode.ve.ce.LeafNode.initialize
    at VeCeMWTransclusionInlineNode.ve.ce.GeneratedContentNode.render
    at VeCeMWTransclusionInlineNode.ve.ce.MWTransclusionNode.render
    at VeCeMWTransclusionInlineNode.ve.ce.GeneratedContentNode.doneGenerating
    at load.php?debug=false&lang=en&modules=ext.CodeMirror.lib|ext.visualEditor.core...
    at fire (...jquery)
    at Object.fireWith [as resolveWith] (...jquery)
    at Object.deferred.(/w/anonymous function) [as resolve] (...jquery)
    at VeCeMWTransclusionInlineNode.ve.ce.MWTransclusionNode.onParseSuccess (<anonymous>)

Happens consistently in production (en.wikipedia.org; 1.32.0-wmf.10) and reproducible still on latest master in Beta Cluster.

Observed in latest Chrome on macOS while logged-in.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 443981 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Fix cleanup of PreviewElement after render

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

Change 443981 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Fix cleanup of PreviewElement after render

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

Change 444139 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (bbe825690)

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

Change 444139 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (bbe825690)

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

Deskana triaged this task as Medium priority.