Page MenuHomePhabricator

Saved Translation Not Loading (EN -> HI)
Closed, InvalidPublic4 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
I was trying to translate an article named Oslo Airport, Gardermoen from English to Hindi Wikipedia using Special:CS utility. The tool was having issues translating some templates used in the source article and was not even copying the data in template in origin language. I tried to publish with whatever translated text I had but some Java Script errors were coming (I don't remember exactly).

Then I navigated back to home page and trying to reopen the translation after 10 minutes but it's not opening. It always says "Loading saved translation" but it never loads even after hours. It's all blank. Thinking it could be a temporary server issue I tried opening it today but even after multiple attempts on various days it doesn't load.
I had completed translation for the full article which is very long and now it seems everything is loss. As we don't have the option to see source text of translation unless it's published I was not able to copy and save it some where. Is there any way we can retrieve the saved translation text/source. It must be somewhere in the database.

What should have happened instead?:
The auto saved translated text should have loaded even if a template is not getting translated/loaded it should not block other texts to load.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Browser: Microsoft Edge Version 96.0.1054.34 (Official build) (64-bit)), and Google Chrome Version 96.0.4664.45 (Official Build) (64-bit).
3 Warnings and 2 Errors from Console of the Google Chrome browser page using (Inspect) tool:

TypeError: Cannot read properties of undefined (reading 'length')
    at Object.ve.dm.MWTransclusionNode.static.getWikitext
    VeDmCXTransclusionInlineNode.ve.dm.MWTransclusionNode.getWikitext
    VeCeCXTransclusionInlineNode.ve.ce.MWTransclusionNode.generateContents
    VeCeCXTransclusionInlineNode.ve.ce.GeneratedContentNode.forceUpdate
    VeCeCXTransclusionInlineNode.ve.ce.GeneratedContentNode.update
    VeCeCXTransclusionInlineNode.VeCeGeneratedContentNode
    VeCeCXTransclusionInlineNode.VeCeMWTransclusionNode
    VeCeCXTransclusionInlineNode.VeCeCXTransclusionNode
    VeCeCXTransclusionInlineNode
    VeCeNodeFactory.OO.Factory.create (<anonymous>:411:592) undefined

Uncaught TypeError: Cannot read properties of null (reading '$element')
    at VeInitMwCXTarget.ve.init.mw.CXTarget.getTargetSectionElementFromSectionNumber
    VeInitMwCXTarget.ve.init.mw.CXTarget.getTargetSectionNodeFromSectionNumber
    MwCXTranslationTracker.mw.cx.TranslationTracker.processSectionChange
    MwCXTranslationTracker.mw.cx.TranslationTracker.processChangeQueue
    MwCxTranslationController.mw.cx.TranslationController.processChangeQueue

Let me know if you need any more info.

Event Timeline

Hi, can some one look into this?
if it's going to take time, can you please provide me the translated text currently present in the database? I will edit that and make it useful for the target article. Currently it's not visible on the browser. Only possibility I can see is to download/get the raw text from data base and edit it separately on a notepad before publishing it.
It will also be useful if you could provide a download option of the raw text of in progress translation.

Nikerabbit set the point value for this task to 4.Feb 9 2022, 2:14 PM

Before we investigate the actual issue, please be assured that your work is not lost. You need not wait for our investigation and fix. Please go to https://cxdebugger.toolforge.org/ , provide the title and languaes as shown in below screenshot. Press Find and then Fetch translation. You will see your translations there. You may copy and publish it using visual editor.

image.png (749×1 px, 274 KB)

Uncaught TypeError: Cannot read properties of null (reading '$element')
    at VeInitMwCXTarget.ve.init.mw.CXTarget.getTargetSectionElementFromSectionNumber
    VeInitMwCXTarget.ve.init.mw.CXTarget.getTargetSectionNodeFromSectionNumber
    MwCXTranslationTracker.mw.cx.TranslationTracker.processSectionChange
    MwCXTranslationTracker.mw.cx.TranslationTracker.processChangeQueue
    MwCxTranslationController.mw.cx.TranslationController.processChangeQueue

The relevant code for this error is

ve.init.mw.CXTarget.prototype.getTargetSectionElementFromSectionNumber = function ( sectionNumber ) {
	var targetId = 'cxTargetSection' + sectionNumber,
		view = this.targetSurface.$element.find( '#' + targetId ).data( 'view' );

	return !view ? null : view;
};

this.targetSurface going null means some other things broke before this error.

Hi @Shekhar_hiwiki, if time permits, could you please try to reload the article again with the browser dev tools opened and inform if there are more errors other than the two ones? Also please provide warning messages too.

Hi Santosh, Thank you for providing the way to download my translated work. I will try to re open and provide you the error again.

Hi Santosh,
I have uploaded the whole file which contains all the error text generated from the console of inspect tool file <error-15Feb22-T296614.txt>.


The issues tab has content in file <T296614-Inspect tool-issues_tab.docx>

Pginer-WMF subscribed.

After investigation it seems that the issue finally could not be reproduced.
As a result of this investigation process, the debugger tool has been improved and this would facilitate the investigation of this kind of issue sin the future. So we are closing the ticket, but feel free to reopen if the issue appears again.