Page MenuHomePhabricator

CX1: Uncaught TypeError: Cannot read property 'static' of undefined
Closed, DeclinedPublic

Description

Uncaught TypeError: Cannot read property 'static' of undefined
    at MachineTranslation.init (ext.cx.tools.mt.js?5dd8d:74)
    at initTranslationRequest (ext.cx.tools.mt.js?5dd8d:313)
    at ext.cx.tools.mt.js?5dd8d:476
    at fire (load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=14g6lkf:3317)
    at Object.add (load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=14g6lkf:3376)
    at HTMLDocument.<anonymous> (ext.cx.tools.mt.js?5dd8d:469)
    at mightThrow (load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=14g6lkf:3583)
    at process (load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=14g6lkf:3651)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 12 2018, 4:00 PM

Article: Awe
Language Pairs: en -> gu

Is this visible to users (apart from showing in the browser console)? Is this preventing users to complete and publish the translation? Is the issue happening also in CX2?

Pginer-WMF triaged this task as Low priority.Jul 20 2018, 9:57 AM
Pginer-WMF moved this task from Needs Triage to Bugs on the ContentTranslation board.
Arrbee moved this task from Bugs to Check & Move on the ContentTranslation board.Aug 5 2019, 1:27 PM
Petar.petkovic closed this task as Declined.Aug 5 2019, 2:28 PM
Petar.petkovic added a subscriber: Petar.petkovic.

From the trace, I see this file (ext.cx.tools.mt.js) is where the error happens. It is never loaded in CX2, thus we can close this.
There are no clear steps to reproduce, just guess that dependencies aren't properly managed, which sometimes causes the file with static method which we try to access not to be loaded.