Page MenuHomePhabricator

"Publish" button remains greyed out: "TypeError: this.translationView.categoryUI is null"
Open, HighPublic

Description

I can't publishing the Translation with the Content translation at barWiki.

Edit:
I called up the content translation (https://bar.wikipedia.org/w/index.php?title=Spezial:Inhalts%C3%BCbersetzung#draft), translated the pages "Nilotische Sprachen" and "Mambiloide Sprachen" from deWiki and clicked the "Veröffentlichen (German for publish)" button. The button then turned gray, the articles were not published.

@Aklapper here is a screenshot https://bar.wikipedia.org/wiki/Datei:DeepinBildschirmfoto_Bereich_ausw%C3%A4hlen_20200206122801.png

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 3 2020, 9:42 AM
Aklapper changed the task status from Open to Stalled.Feb 3 2020, 4:11 PM

Hi @WikiBayer, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

Unfortunately this Phabricator task lacks some information. If you have time and can still reproduce the problem: Please add a more complete description to this task.
That should be a clear list of specific steps to reproduce the situation, a link to a public website where the issue can be seen, what exactly happens (error messages etc) or not after which steps, information about your web browser(s), etc.
You can edit the task description by clicking Edit Task. Ideally, exact and clear steps to reproduce should allow any other person to follow these steps (without having to interpret those steps) and see the same results. Problems that others can reliably reproduce can get fixed faster. Thanks!

WikiBayer updated the task description. (Show Details)Feb 3 2020, 4:19 PM
WikiBayer updated the task description. (Show Details)Feb 4 2020, 8:37 AM
WikiBayer updated the task description. (Show Details)Feb 6 2020, 11:33 AM
WikiBayer updated the task description. (Show Details)
WikiBayer added a subscriber: Andre.
WikiBayer removed a subscriber: Andre.
Aklapper renamed this task from Content translation publishing is not possible. to Content translation publishing not possible: "Publish" button remains greyed out.Feb 6 2020, 12:24 PM

Hi @WikiBayer, is this reproducible? Is there any output in the developer tools of the web browser?

For more information how to use the developer tools of your web browser, please see:

WikiBayer changed the task status from Stalled to Open.Feb 6 2020, 3:49 PM

@Aklapper I use Firefox (linux)

Error
TypeError: this.translationView.categoryUI is null load.php:1033:181

jQuery 6
<anonym> self-hosted:876
Aklapper renamed this task from Content translation publishing not possible: "Publish" button remains greyed out to "Publish" button remains greyed out: "TypeError: this.translationView.categoryUI is null".Feb 6 2020, 4:38 PM
Pginer-WMF added subscribers: Jpita, Pginer-WMF.

@Jpita was doing some testing and publishing seemed to work as expected. Is the detail shared in T244114#5856579 helping to identify what can e the issue?

Pginer-WMF triaged this task as Medium priority.Feb 7 2020, 3:29 PM
Pginer-WMF moved this task from Needs Triage to Bugs on the ContentTranslation board.
Qingyuzhe added a comment.EditedFeb 8 2020, 1:51 AM

I have encountered similar problems. When I press the "Publish" button, its status changes to "Publishing". When I review it five hours later, its status is still "Publishing". And my contribution does not have any record of creating this article.

log: https://cfp.vim-cn.com/cbf88/text

some info: Chrome (Windows10) , translate english to chinese

Jpita added a subscriber: santhosh.Feb 8 2020, 4:19 AM

@Qingyuzhe thanks for the log, it is super helpful, maybe @santhosh can see the issue now?

Can you tell me what article are you translating and the source and target languages and please unlock the ongoing translation (delete it from the in progress column in the dashboard) so I can try it for myself?

@WikiBayer please unlock the translation as well so I can try for myself.

@Jpita Thanks for replying. The origin article is https://en.wikipedia.org/wiki/Lamar_Hunt_Jr. And I want to translate it to https://zh.wikipedia.org/wiki/User:%E8%BD%BB%E8%AF%AD%E8%80%85/%E5%B0%8F%E6%8B%89%E9%A9%AC%E5%B0%94%C2%B7%E4%BA%A8%E7%89%B9 . And I want to know if there is any way to save the draft temporarily? This article uses a lot of templates and is not easy to copy directly.

Jpita added a comment.Feb 9 2020, 7:40 AM

@Qingyuzhe right now we can't save drafts without blocking the translation, if you don't want to lose the translation, can you please send me a similar article (same templates used) so I can try from my side?
also, did you use any of these MT engines or you did the translation yourself manually?

Jpita added a comment.Feb 9 2020, 7:52 AM

@Pginer-WMF I was able to copy the wikitext into this article https://en.wikipedia.org/wiki/User:Testpitanormal/lamar and was able to fully translate it using all the mt engines https://zh.wikipedia.org/wiki/User:Testpitanormal/Lamar.
I used both Chrome and Firefox.

Ranveig added a subscriber: Ranveig.Feb 9 2020, 8:59 AM

@Jpita I delete it and move draft to https://w.wiki/GtV . I used Google Translate. Thanks for your attention.

The error no longer occurs in the morning. I can now publish translations again, the Javascript error is no longer available.

Jpita added a comment.Feb 9 2020, 12:18 PM

@Qingyuzhe can you try now to see if it was fixed like WikiBayer's case?

@Jpita No, I suspect it's caused by some templates but I'm not 100% sure.

Jpita added a comment.EditedFeb 9 2020, 12:26 PM

It seems that way.
Thank you for your cooperation, we will investigate further and see if we can find the issue.
Any more info you can provide will be much appreciated (list of templates, anything in particular you remember editing/adding, etc...) .

@Jpita
I have tested with an article that I could not publish.

The (unmodified) german version could be published without problems.
after I translated the first Sections of the article it was no longer possible to publish it.

Nux added a subscriber: Nux.Mar 1 2020, 11:04 PM

after I translated the first Sections of the article it was no longer possible to publish it.

I'm confused. If it was not possible to publish, what is the diff you point to representing?
Can you share the output from the Javascript console when the error occurs?
thanks!

A mi también me ha ocurrido esto, al publicar mi traducción en content translation (cuando hago clic en el botón "Publicae"), se congela la herramienta de traducción de contenidos y mi traducción de https://en.wikipedia.org/wiki/GNOME_Screenshot a eswiki no se publica

RodneyAraujo raised the priority of this task from Medium to High.Sep 13 2020, 9:51 PM

A mi también me ha ocurrido esto, al publicar mi traducción en content translation (cuando hago clic en el botón "Publicae"), se congela la herramienta de traducción de contenidos y mi traducción de https://en.wikipedia.org/wiki/GNOME_Screenshot a eswiki no se publica

I managed to replicate Rodney's case by copying the content of his source article on to this user page and then translate all the content using google translate , when I click publish this error appears in the console and the publish button gets stuck on "publishing".
When I refresh the page and hit the publish button again then it gets published correctly

This comment was removed by RodneyAraujo.

A mi también me ha ocurrido esto, al publicar mi traducción en content translation (cuando hago clic en el botón "Publicae"), se congela la herramienta de traducción de contenidos y mi traducción de https://en.wikipedia.org/wiki/GNOME_Screenshot a eswiki no se publica

I managed to replicate Rodney's case by copying the content of his source article on to this user page and then translate all the content using google translate , when I click publish this error appears in the console and the publish button gets stuck on "publishing".
When I refresh the page and hit the publish button again then it gets published correctly

ya está, mi traducción ya se publicó en https://es.wikipedia.org/wiki/GNOME_Screenshot

A mi también me ha ocurrido esto, al publicar mi traducción en content translation (cuando hago clic en el botón "Publicae"), se congela la herramienta de traducción de contenidos y mi traducción de https://en.wikipedia.org/wiki/GNOME_Screenshot a eswiki no se publica

I managed to replicate Rodney's case by copying the content of his source article on to this user page and then translate all the content using google translate , when I click publish this error appears in the console and the publish button gets stuck on "publishing".
When I refresh the page and hit the publish button again then it gets published correctly

ya está, mi traducción ya se publicó en https://es.wikipedia.org/wiki/GNOME_Screenshot

Lo arreglaremos asi que posible, gracias por la info

[Please strip unneeded full quotes to keep this task readable - thanks!]

Need help, can't publish this:

Jpita added a comment.Sep 18 2020, 9:40 PM

Need help, can't publish this:

Can you please try to refresh and check if you can publish after?

Jdlrobson added a comment.EditedSep 18 2020, 9:41 PM

@RodneyAraujo are there any errors in your JavaScript console? This will be useful context.

Ahora, el error de que después de hacer clic en el botón de "publicar" (Publish) la interfaz se congela y no se publica la traducción, muestra un mensaje emergente de "error" en color rojo.

Estoy traduciendo: "Veronica bellidioides" (cebwiki)
https://ceb.wikipedia.org/wiki/Veronica_bellidioides

a enwiki, aunque esté con las alertas de que la herramienta de traducción automatica (machine translation) está deshabilitada para todos los usuarios y que solo lo pueden usar los usuarios confirmados extendidos (extended confirmed users)

Yo copie el contenido original y lo traducí por mi mismo, así, sin MT:

Yo decidí publicarlo en el draftspace para que otros editores lo revisen antes de pasarlo al principal.

@RodneyAraujo are there any errors in your JavaScript console? This will be useful context.

yes, @Jdlrobson

Need help, can't publish this:

Can you please try to refresh and check if you can publish after?

yo volví a cargar la página y aún la traducción no se publica correctamente

pero yo volví a cargar la página y la traducción se publicó correctamente:

en https://en.wikipedia.org/wiki/Draft:Veronica_bellidioides

Este error o fallo de ContentTranslation hace que mis traducciones no se publiquen rapidamente.

RodneyAraujo removed a subscriber: santhosh.
Aklapper removed santhosh as the assignee of this task.Sep 19 2020, 1:24 PM
Aklapper added a subscriber: santhosh.

@RodneyAraujo: Please do not assign tasks to people without their explicit consent - it is up to each person to decide what they plan to work on. Thanks!

Disculpe, aún sigo teniendo este problema, necesito más ayuda

Jpita added a comment.Sep 22 2020, 3:23 PM

Disculpe, aún sigo teniendo este problema, necesito más ayuda

el problema todavia no esta arreglado, te diremos algo cuando este.

gracias

RodneyAraujo added a comment.EditedTue, Sep 29, 10:36 PM

con ese problema, veo cuando yo vuelvo a cargar la página para publicar la traducción, el porcentaje de la traducción automática se reinicia a 100% de texto sin modificar (como antes de volver a cargar la página estaba como al 85%) y no me deja publicar mi traducción



RodneyAraujo added a comment.EditedWed, Sep 30, 1:55 AM

@Aklapper @Jpita
Recently I have multiple issues with Content Translation, when I tried to translate "Hovde Glacier" from English to español, I clicked in the “Publish” button (Publicar) and get stuck in “Publishing” (Publicando...) Causing that my translation to español can't publish correctly.

30 minutes later, I reloaded the page and I saw that the percentage of unmodified text it restarted to 100% of unmodified text. When I try to modify the text if previously I modified the machine translation text, the percentage of unmodified text not switch to 99%, 97%, and successively, but when I publish my translation again, it shows a red message that my translation cannot be published because it contains too much unmodified text. With this error can't publish the translation. I opened the console and I have seen that Content Translation has multiple issues, e.g., the page has deprecated modules:
“The page is using the deprecated ResourceLoaded module "jquery.ui". Please use OOUI instead.”

“JQMIGRATE: jQuery.fn.delegate() is deprecated”

“This page is using the deprecated ResourceLoaded module "jquery.tipsy"”.
“This page is using the deprecated ResourceLoaded module "jquery.throttle-debounce”.
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
“PopupWidget#toggle: Before calling this method, the popup must be attached to the DOM.”


RodneyAraujo raised the priority of this task from High to Unbreak Now!.Wed, Sep 30, 2:31 AM
RhinosF1 lowered the priority of this task from Unbreak Now! to High.Wed, Sep 30, 7:02 AM
RhinosF1 added a subscriber: RhinosF1.

Please don't randomly change task priorities without a reason. Your account may be disabled if you do so again.

Kizule removed a subscriber: Kizule.Wed, Sep 30, 11:06 AM

Please don't randomly change task priorities without a reason. Your account may be disabled if you do so again.

@RhinosF1 I need more help con CXT

@RodneyAraujo: Please read and follow https://www.mediawiki.org/wiki/Bug_management/Phabricator_etiquette if you would like to continue being active in Phabricator. Thanks for your understanding.

@RodneyAraujo: Please read and follow https://www.mediawiki.org/wiki/Bug_management/Phabricator_etiquette if you would like to continue being active in Phabricator. Thanks for your understanding.

ok, thanks

Regression: this problem that the "publish" (publicar) button of content translation get stuck on "Publishing" (Publicando...), still happens to me when I publish a page with templates in the content. Recently i tried to publish "OxIClean" (enwiki) to eswiki.


Here are the console errors:

Similar problems for publishing were reported in the talk page recently. It seems that publishing fails on some specific circumstances, but it is worth investigating which are those.

https://logstash.wikimedia.org/app/kibana#/doc/logstash-*/logstash-2020.10.18/clienterror/?id=AXU6nHpE2lgCwKx7q8yn

at VeDmConverter.ve.dm.Converter.getDomSubtreeFromData  URL1:288:451
at Object.ve.dm.MWReferenceNode.static.toDomElements  URL2:63:230
at Object.ve.dm.CXReferenceNode.static.toDomElements  URL2:502:218
at VeDmConverter.ve.dm.Converter.getDomElementsFromDataElement  URL1:266:550
at VeDmConverter.ve.dm.Converter.getDomSubtreeFromData  URL1:287:669
at VeDmConverter.ve.dm.Converter.getDomSubtreeFromModel  URL1:282:880
at VeDmConverter.ve.dm.Converter.getDomFromModel  URL1:281:957
at VeDmSurface.ve.dm.Surface.getDom  URL1:180:635
at VeUiCXSurface.ve.ui.Surface.getDom  URL1:610:42
at MWCXTargetArticle.mw.cx.TargetArticle.getContent  URL3:1093:563

URL1: https://es.wikipedia.org/w/load.php?lang=en&modules=ext.visualEditor.base%2Ccore%2Cdiffing%2Cmediawiki%2Cmwcore%2Cmwlink%2Cmwmeta%2CprogressBarWidget%2Csanitize%2CsupportCheck%2Cswitching%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%2Cwelcome%7Cext.visualEditor.core.desktop%2Cutils%7Cext.visualEditor.core.utils.parsing%7Cext.visualEditor.desktopArticleTarget.init&skin=vector&version=1w221
URL2: https://es.wikipedia.org/w/load.php?lang=en&modules=ext.CodeMirror.visualEditor%7Cext.CodeMirror.visualEditor.init%7Cext.abuseFilter.visualEditor%7Cext.cite.styles%2CvisualEditor%7Cext.cite.visualEditor.core%2Cdata%7Cext.citoid.visualEditor%7Cext.citoid.visualEditor.data%7Cext.confirmEdit.CaptchaInputWidget%2CvisualEditor%7Cext.disambiguator.visualEditor%7Cext.geshi.visualEditor%7Cext.graph.data%2CvisualEditor%7Cext.kartographer%7Cext.kartographer.editing%2Cutil%2CvisualEditor%7Cext.math.styles%2CvisualEditor%7Cext.score.visualEditor%7Cext.score.visualEditor.icons%7Cext.spamBlacklist.visualEditor%7Cext.templateDataGenerator.editPage%7Cext.titleblacklist.visualEditor%7Cext.visualEditor.data%2CmoduleIcons%2CmoduleIndicators%7Cext.wikihiero.visualEditor%7Cext.wikimediaEvents.visualEditor%7Cjquery.throttle-debounce%7Cmediawiki.ForeignStructuredUpload%2CForeignUpload%2CUpload%7Cmediawiki.ForeignStructuredUpload.BookletLayout%7Cmediawiki.Upload.BookletLayout%7Cmediawiki.language.names%7Cmediawiki.libs.jpegmeta%7Cmediawiki.page.gallery.styles%7Cmediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CStashedFileWidget%2CTable%2CUserInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Cmoment%7Cmw.cx.visualEditor%7Cmw.cx.visualEditor.base%2Ccontent%2Clink%2Cmt%2CpublishSettings%2Csection%2Csentence%7Coojs-ui.styles.icons-editing-citation%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-layout%2Cicons-location%2Cicons-media%2Cicons-moderation%2Cicons-movement&skin=vector&version=te4x2
URL3: https://es.wikipedia.org/w/load.php?lang=en&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs%2Coojs-ui%2Coojs-ui-core%2Coojs-ui-toolbars%2Coojs-ui-widgets%2Coojs-ui-windows%2Cpapaparse%2Crangefix%2Csite%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.cx.eventlogging.campaigns%7Cext.cx.model%2Cutil%7Cext.cx.widgets.spinner%7Cext.cx.wikibase.link%7Cext.echo.api%2Cinit%7Cext.eventLogging%2CnavigationTiming%2Cpopups%2CwikimediaEvents%7Cext.uls.common%2Ccompactlinks%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cjquery.client%2Ccookie%2Ctablesorter%2CtextSelection%7Cjquery.tablesorter.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2Cdeflate%2Cexperiments%2CjqueryMsg%2Clanguage%2Cpulsatingdot%2Cstorage%2Cuser%2Cutil%2Cwidgets%7Cmediawiki.ForeignApi.core%7Cmediawiki.action.view.redirectPage%7Cmediawiki.editfont.styles%7Cmediawiki.interface.helpers.styles%7Cmediawiki.language.months%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.ui.button%7Cmediawiki.widgets.styles%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2CSiteMapper%2Cdm%2Cinit%2Cui%2Cutil%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CHeader%2CInfobar%2CMessageWidget%2CPageTitleWidget%2CPersonalMenuWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui-toolbars.icons%7Coojs-ui-widgets.icons%7Coojs-ui-windows.icons%7Coojs-ui.styles.icons-accessibility%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-user%2Cicons-wikimedia%2Cindicators%7Cskins.vector.legacy.js%7Cuser.defaults%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=vector&version=1lnvn

@Jdlrobson recently i started a translation with content translation and the problem is that the text is not translated with MT

DLynch added a subscriber: DLynch.EditedThu, Oct 22, 5:11 PM

The specific error message from that stack trace is: Uncaught TypeError: Cannot read property 'lastOuterPost' of null

Which strongly implies that the converter is failing in getDomSubtreeFromData on a detached node. (But I'm not sure where the source of that issue is.)