Page MenuHomePhabricator

[cx2-testing] Console errors for some articles' content
Closed, ResolvedPublic

Description

(1) "Pauling's rules" article

jQuery.Deferred exception: Cannot read property 'translationUnits' of null TypeError: Cannot read property 'translationUnits' of null
  • while the article is still loading (and never finishes), edit the title of the translated article. The Console will display several errors:
VM1158:1218 Uncaught TypeError: Cannot read property 'getView' of null
    at VeInitMwCXTarget.ve.init.mw.CXTarget.alignSectionPairs (<anonymous>:1218:140)
    at run (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1tvjbrl:792)
    at VeInitMwCXTarget.throttleAlignSectionPairs (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1tvjbrl:792)
    at VeInitMwCXTarget.ve.init.mw.CXTarget.onTargetTitleChange (<anonymous>:1216:37)
    at mw.cx.ui.TargetColumn.oo.EventEmitter.emit (<anonymous>:48:445)
    at mw.cx.widgets.PageTitleWidget.oo.EventEmitter.emit (<anonymous>:48:445)
    at mw.cx.widgets.PageTitleWidget.OO.ui.InputWidget.setValue (load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1tvjbrl:900)
    at load.php?debug=false&lang=en&modules=ext.visualEditor.core|oojs-ui-core%2Coojs-ui-widgets&skin=vector&version=1tvjbrl:900

(2) "Acid dissociation constant" article (or any other article with formulas). The same
http://cx2-testing.wmflabs.org/index.php?title=Special:ContentTranslation&page=Acid+dissociation+constant&from=en&to=es&targettitle=Acid+dissociation+constant

  • in cx2-testing select English to espanol translation and click to start 'New translation'
  • in 'New translation', enter 'Acid dissociation constant' as the article's title and click 'Start translation'

Quite few formulas from the article will not be displayed. The Console displays the following error:

VM4796:27 [CX] Unable to get cxserver token (ignored). {error: {…}}

Screen Shot 2018-03-12 at 2.30.31 PM.png (238×934 px, 36 KB)

Event Timeline

cx2-testing is down because T195614: PHP7 is required on cx-testing and cx2-testing, but I have checked "Pauling's rules" locally and there doesn't seem to be error jQuery.Deferred exception: Cannot read property 'translationUnits' of null TypeError: Cannot read property 'translationUnits' of null.

Since there is an error and sections never finish loading, when you edit target title, alignment of sections tries to occur, but since there are no sections and associated UI elements, another error is logged. So, first error caused second to appear. But, second error can happen standalone, which is described in T188484#4056847.

As for "Acid dissociation constant", that console log isn't affecting how math formulas are rendering. Although, formulas are rendering correctly on my localhost. Since that isn't JS error which affects rendering, if issue is still there, creating separate ticket would be good. Maybe even adding T191389 as parent.

That being said, I suggest rechecking logged error for "Pauling's rules" and closing this ticket if not happening anymore.

Etonkovidova claimed this task.

Re-checked - the issues are gone. Closing the ticket as Resolved.