Page MenuHomePhabricator

Failure to publish completed translation : "Error: Attempting to save section 1 having no section state"
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
I have translated page OpenStreetMap into Telugu initially with same title. After translation is completed
I changed the title to Telugu ఓపెన్‌స్ట్రీట్‌మేప్ ( OSM ) and pressed Publish button.

Actual Results:

The article is neither published nor loads for further translation

Expected Results:
Published page should be seen.

Can you help complete publishing or provide the translated text?
User:Arjunaraoc

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 13 2019, 9:50 AM

Javascript console log is given below.

Error: Attempting to save section 1 having no section state. load.php:2324:731

jQuery 2
forEach self-hosted:262
jQuery 3
<anonymous> self-hosted:985
receiveMessage resource:///actors/BrowserTabChild.jsm:93
wrapHandlingUserInput resource://gre/modules/E10SUtils.jsm:533
receiveMessage resource:///actors/BrowserTabChild.jsm:92
receiveMessage resource://gre/modules/ActorManagerChild.jsm:165

JQMIGRATE: Migrate is installed with logging active, version 3.0.1 load.php:177:217
This page is using the deprecated ResourceLoader module "jquery.ui.position". load.php:57:298
This page is using the deprecated ResourceLoader module "jquery.ui.widget". load.php:88:949
This page is using the deprecated ResourceLoader module "jquery.tipsy". load.php:2109:248
This page is using the deprecated ResourceLoader module "jquery.ui.core".
Please use OOUI instead. load.php:11:91
JQMIGRATE: jQuery.parseJSON is deprecated; use JSON.parse load.php:177:792
This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426 load.php:820:767
jQuery.Deferred exception: ve.init.target.publishButton is null
mw.cx.ui.TranslationView.prototype.onTranslationIssues@https://te.wikipedia.org/w/load.php?debug=false&lang=te&modules=diffMatchPatch%2Cjquery%2Cmoment%2Coojs%2Coojs-ui%2Coojs-ui-core%2Coojs-ui-toolbars%2Coojs-ui-widgets%2Coojs-ui-windows%2Cpapaparse%2Crangefix%2Csite%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Ceasy-deflate.core%2Cdeflate%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.cx.entrypoints.contributionsmenu%7Cext.cx.eventlogging%2Cmodel%2Csitemapper%2Cutil%7Cext.cx.widgets.callout%2Cspinner%7Cext.cx.wikibase.link%7Cext.echo.api%2Cinit%7Cext.eventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.uls.common%2Ccompactlinks%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.base%2Ccore%2Cdiffing%2Cmediawiki%2Cmwcore%2Cmwextensionmessages%2Cmwlink%2Cmwmeta%2CprogressBarWidget%2CsupportCheck%2Cswitching%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%2Cwelcome%7Cext.visualEditor.core.desktop%7Cext.visualEdi…
undefined

Screenshot uploaded showing the failure in publishing

Showing status of translation

Aklapper renamed this task from Failure to publish completed translation to Failure to publish completed translation : "Error: Attempting to save section 1 having no section state".Jun 13 2019, 5:14 PM
Aklapper added a project: ContentTranslation.

Thanks for reporting this! Assuming this task is about ContentTranslation hence adding project tag so others can find this task, under that project.

For future reference, please post console output by using three backticks before and after (see the comment preview below), so linebreaks etc are preserved. Thanks :)

I don't know exact reason behind your title ending up with two &zwnj; substrings. That is the likely cause behind having your publishing being unsuccessful.

Having &zwnj; in your title is the definite reason behind not being able to load your translation for later editing/trying to publish again.

This is happening ever since e7d17dbc030b91a2d8e55e0760ef10d80419f3ea and was discovered some time ago in my local dev environment, but I haven't reported a ticket.
@Pginer-WMF, when title is invalid (having characters like square brackets, pipes or sequences like "&zwnj;") and draft saved and loaded again, CX will always fail. Do we need a new ticket, which I could create and explain issue with more technical details? Or we can use this one, which also mentions publishing problems?

Do we need a new ticket, which I could create and explain issue with more technical details? Or we can use this one, which also mentions publishing problems?

Having a new ticket that is focused on the specific issue seems more useful. You can link to this one as related in order to check it again once the underlying issue gets solved.

Do we need a new ticket, which I could create and explain issue with more technical details? Or we can use this one, which also mentions publishing problems?

Having a new ticket that is focused on the specific issue seems more useful. You can link to this one as related in order to check it again once the underlying issue gets solved.

Created T226160

@Pginer-WMF @PeterPetrakovic88 ZWNJ may appear more times, when the title uses English text written in Telugu. Meanwhile, can you provide the translated text, so that I can publish it outside of that tool, as I have already spent considerable time on translation.

@Pginer-WMF @PeterPetrakovic88 ZWNJ may appear more times, when the title uses English text written in Telugu. Meanwhile, can you provide the translated text, so that I can publish it outside of that tool, as I have already spent considerable time on translation.

Thanks for the details, we'll investigate and plan to work to fix this. Meanwhile you can use the translation debugger to access the contents of your translation:

  1. Type the source language ("en"), the target language ("te"), and the source title ("OpenStreetMap")
  2. Click "find" to retrieve the translation metadata and ID
  3. Click "Fetch translation" to access the contents

@Pginer-WMF Thanks for the link to translation debugger. It needed some work to get the wikitext properly as wikipage, but it is helpful.