Page MenuHomePhabricator

Fully translated articles not saving when using the CX
Open, HighPublicBUG REPORT

Description

There are occurrence of translated pages not saving reported:

Steps to replicate the issue (include links if applicable):
First scenario

  • Start and finish translating all the sections in the Antisocial personality disorder from English to Romanian
  • Click on Publish.

What happens?:

  • The page just says "Saving..." continuously and doesn't save

What should have happened instead?:

  • The page is supposed to be saved and published.

image.png (901×1 px, 162 KB)

Second scenario

  • Start and finish translating all the sections in the Melbourne Cup from English to Portuguese -

What happens?:

  • The article did not save automatically

What should have happened instead?:

  • The page is supposed to be automatically saved and once I click publish, it should publish the article

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Nikerabbit moved this task from Needs Triage to Bugs on the ContentTranslation board.

Another one from English to Romanian: "The Assassination of John F. Kennedy" -- no more saving after the "Oswald" subsection. Error in debug console reads:

Uncaught TypeError: sectionState is undefined
  processSectionChange mw.cx.TranslationTracker.js:415
  processChangeQueue mw.cx.TranslationTracker.js:385
  processChangeQueue mw.cx.TranslationController.js:146
  processSaveQueue mw.cx.TranslationController.js:344
  later oojs-ui-core.js:251
  setTimeout handler*OO.ui.debounce/< oojs-ui-core.js:259
  onSectionChange mw.cx.TranslationController.js:109
  emit oojs.js:858
  emitSectionChange ve.dm.CXSectionNode.js:97
  setTimeout handler*ve.dm.CXSectionNode.prototype.onUpdate ve.dm.CXSectionNode.js:92
  emit oojs.js:858
  setLength ve.dm.Node.js:741
  adjustLength ve.dm.Node.js:754
  setLength ve.dm.Node.js:737
  adjustLength ve.dm.Node.js:754
  setLength ve.dm.Node.js:737
  adjustLength ve.dm.Node.js:754
  applyTreeOperation ve.dm.TreeModifier.js:363
  applyTreeOperations ve.dm.TreeModifier.js:105
  process ve.dm.TreeModifier.js:394
  process ve.dm.TransactionProcessor.js:110
  commit ve.dm.Document.js:417
  changeInternal ve.dm.Surface.js:971
  change ve.dm.Surface.js:940
  changeModel ve.ce.Surface.js:3772
  handleObservedChanges ve.ce.Surface.js:2272
  pollOnceInternal ve.ce.SurfaceObserver.js:152
  pollOnce ve.ce.SurfaceObserver.js:108
  onDocumentInput ve.ce.Surface.js:1963
  callListener ve.EventSequencer.js:423
  onEvent ve.EventSequencer.js:257
  makeEventHandler ve.EventSequencer.js:61
  jQuery 7
hueitan subscribed.

From the logstash,

Epidemiology of antisocial personality disorder (English to Romanian) - logstash

Recursive link purge enqueued for Epidemiology of antisocial personality disorder

Melbourne Cup (English to Portuguese) - logstash

Parsing Melbourne Cup was slow, took 4.12 seconds

Another one from English to Romanian: "The Assassination of John F. Kennedy" -- no more saving after the "Oswald" subsection. Error in debug console reads:

I wasn't able to get the same console debug error, when I click on the "Oswald" section, api load the translation successfully but doesn't render, and here's the console warning message

jquery.js:3783 jQuery.Deferred exception: Cannot read properties of undefined (reading 'getRange') TypeError: Cannot read properties of undefined (reading 'getRange')
    at ve.dm.MWReferenceNode.static.toDomElements (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.cite.visualEditor.core&skin=contenttranslation&version=1vvxl:21:468)
    at ve.dm.CXReferenceNode.static.toDomElements (https://ro.wikipedia.org/w/load.php?lang=ro&modules=mw.cx.visualEditor&skin=contenttranslation&version=u27m5:37:800)
    at ve.dm.Converter.getDomElementsFromDataElement (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:286:815)
    at ve.dm.Converter.getDomSubtreeFromData (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:311:438)
    at ve.dm.MWReferenceNode.static.toDomElements (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.cite.visualEditor.core&skin=contenttranslation&version=1vvxl:22:487)
    at ve.dm.CXReferenceNode.static.toDomElements (https://ro.wikipedia.org/w/load.php?lang=ro&modules=mw.cx.visualEditor&skin=contenttranslation&version=u27m5:37:800)
    at ve.dm.Converter.getDomElementsFromDataElement (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:286:815)
    at ve.dm.Converter.getDomSubtreeFromData (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:308:184)
    at ve.dm.Converter.getDomSubtreeFromModel (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:303:598)
    at ve.dm.Converter.getDomFromModel (https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.visualEditor.core&skin=contenttranslation&version=1guka:302:658) undefined
`