Page MenuHomePhabricator

CX2: JavaScript error after clicking on reference
Closed, DuplicatePublicBUG REPORT

Description

  1. Start translating en:Specific_rotation to Spanish
  2. Translate leading paragraph using Apertium
  3. Save, go back to dashboard and load article again
  4. Click on first reference

Here is the screenshot illustrating the position of the faulty reference:

JS-reference-error.png (932×1 px, 128 KB)

The error logged in console is:

Uncaught TypeError: Cannot read property 'element' of null
    at VeCeCXTransclusionInlineNode.ve.ce.View.initialize (ve.ce.View.js?3b2e6:109)
    at VeCeCXTransclusionInlineNode.ve.ce.LeafNode.initialize (ve.ce.LeafNode.js?6653a:45)
    at VeCeCXTransclusionInlineNode.ve.ce.GeneratedContentNode.render (ve.ce.GeneratedContentNode.js?0141c:220)
    at VeCeCXTransclusionInlineNode.ve.ce.MWTransclusionNode.render (ve.ce.MWTransclusionNode.js?20690:183)
    at VeCeCXTransclusionInlineNode.ve.ce.GeneratedContentNode.doneGenerating (ve.ce.GeneratedContentNode.js?0141c:354)
    at ve.ce.GeneratedContentNode.js?0141c:291
    at fire (jquery.js?6a07d:3268)
    at Object.fireWith [as resolveWith] (jquery.js?6a07d:3398)
    at Object.deferred.(/anonymous function) [as resolve] (http://cx2-testing.wmflabs.org/resources/lib/jquery/jquery.js?6a07d:3736:36)
    at VeCeCXTransclusionInlineNode.ve.ce.MWTransclusionNode.onParseSuccess (ve.ce.MWTransclusionNode.js?20690:171)