Page MenuHomePhabricator

Publishing fails with publish button turning grey without any visible error message
Closed, ResolvedPublic

Description

Users reported several cases (1) (2) (3) (4) (5) where they click the publish button but the translation does not get published. The button become grey but there is no success or error message.

A user shared in this comment the javascript console output that may be helpful to investigate further:

1A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
2
3load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4 Use of "importStylesheetURI" is deprecated. Use mw.loader instead.
4
5maybeLog @ load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4
6
72load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4 Use of "addOnloadHook" is deprecated. Use jQuery instead.
8
9maybeLog @ load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4
10
11load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4 Use of "wgAction" is deprecated. Use mw.config instead.
12
13maybeLog @ load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4
14
15load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4 Use of "wgCanonicalSpecialPageName" is deprecated. Use mw.config instead.
16
17maybeLog @ load.php?lang=gl&modules=startup&only=scripts&raw=1&skin=monobook:4
18
19load.php?lang=gl&modules=jquery.ui&skin=monobook&version=1i6vg:1 This page is using the deprecated ResourceLoader module "jquery.ui".
20
21Please use OOUI instead.
22
23mw.loader.implement.css @ load.php?lang=gl&modules=jquery.ui&skin=monobook&version=1i6vg:1
24
25load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:204 JQMIGRATE: jQuery.fn.delegate() is deprecated
26
27migrateWarn @ load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:204
28
29load.php?lang=gl&modules=jquery.event.special.eachchange|jquery.spinner%2Ctipsy|jquery.spinner.styles|jquery.ui.suggester|jquery.wikibase.linkitem%2Csiteselector%2Cwbtooltip|mw.config.values.wbRepo%2CwbSiteDetails|util.highlightSubstring%2Cinherit|wikibase|wikibase.Site%2CbuildErrorOutput%2Csites|wikibase.api.RepoApi&skin=monobook&version=17t53:3 This page is using the deprecated ResourceLoader module "jquery.tipsy".
30
31mw.loader.implement.css @ load.php?lang=gl&modules=jquery.event.special.eachchange|jquery.spinner%2Ctipsy|jquery.spinner.styles|jquery.ui.suggester|jquery.wikibase.linkitem%2Csiteselector%2Cwbtooltip|mw.config.values.wbRepo%2CwbSiteDetails|util.highlightSubstring%2Cinherit|wikibase|wikibase.Site%2CbuildErrorOutput%2Csites|wikibase.api.RepoApi&skin=monobook&version=17t53:3
32
33VM77:134 Uncaught TypeError: Cannot read property 'nodeType' of null
34
35 at markWord (<anonymous>:134:97)
36
37 at window.markWordStart (<anonymous>:133:3115)
38
39 at tools.wmflabs.org/spellcheck/gl/checkArticle.php?pageName=Especial%3AContentTranslation:1
40
41load.php?lang=gl&modules=ext.CodeMirror.data%2Clib%2CvisualEditor|ext.CodeMirror.mode.mediawiki|ext.CodeMirror.visualEditor.init|ext.abuseFilter.visualEditor|ext.cite.styles%2CvisualEditor|ext.cite.visualEditor.core%2Cdata|ext.citoid.visualEditor|ext.citoid.visualEditor.data|ext.confirmEdit.visualEditor|ext.disambiguator.visualEditor|ext.geshi.visualEditor|ext.graph.data%2CvisualEditor|ext.kartographer|ext.kartographer.editing%2Cutil%2CvisualEditor|ext.math.styles%2CvisualEditor|ext.score.visualEditor|ext.score.visualEditor.icons|ext.spamBlacklist.visualEditor|ext.templateDataGenerator.editPage|ext.titleblacklist.visualEditor|ext.visualEditor.data%2CmoduleIcons%2CmoduleIndicators|ext.wikihiero.visualEditor|ext.wikimediaEvents.visualEditor|jquery.throttle-debounce|mediawiki.ForeignStructuredUpload%2CForeignUpload%2CUpload|mediawiki.ForeignStructuredUpload.BookletLayout|mediawiki.Upload.BookletLayout|mediawiki.language.names|mediawiki.libs.jpegmeta|mediawiki.page.gallery.styles|mediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CStashedFileWidget%2CUserInputWidget|mediawiki.widgets.DateInputWidget.styles|mw.cx.visualEditor|mw.cx.visualEditor.base%2Ccontent%2Clink%2Cmt%2CpublishSettings%2Csection%2Csentence|oojs-ui.styles.icons-editing-citation%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-layout%2Cicons-location%2Cicons-movement&skin=monobook&version=1ugu8:553 This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
42
43Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
44
45(anonymous) @ load.php?lang=gl&modules=ext.CodeMirror.data%2Clib%2CvisualEditor|ext.CodeMirror.mode.mediawiki|ext.CodeMirror.visualEditor.init|ext.abuseFilter.visualEditor|ext.cite.styles%2CvisualEditor|ext.cite.visualEditor.core%2Cdata|ext.citoid.visualEditor|ext.citoid.visualEditor.data|ext.confirmEdit.visualEditor|ext.disambiguator.visualEditor|ext.geshi.visualEditor|ext.graph.data%2CvisualEditor|ext.kartographer|ext.kartographer.editing%2Cutil%2CvisualEditor|ext.math.styles%2CvisualEditor|ext.score.visualEditor|ext.score.visualEditor.icons|ext.spamBlacklist.visualEditor|ext.templateDataGenerator.editPage|ext.titleblacklist.visualEditor|ext.visualEditor.data%2CmoduleIcons%2CmoduleIndicators|ext.wikihiero.visualEditor|ext.wikimediaEvents.visualEditor|jquery.throttle-debounce|mediawiki.ForeignStructuredUpload%2CForeignUpload%2CUpload|mediawiki.ForeignStructuredUpload.BookletLayout|mediawiki.Upload.BookletLayout|mediawiki.language.names|mediawiki.libs.jpegmeta|mediawiki.page.gallery.styles|mediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CStashedFileWidget%2CUserInputWidget|mediawiki.widgets.DateInputWidget.styles|mw.cx.visualEditor|mw.cx.visualEditor.base%2Ccontent%2Clink%2Cmt%2CpublishSettings%2Csection%2Csentence|oojs-ui.styles.icons-editing-citation%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-layout%2Cicons-location%2Cicons-movement&skin=monobook&version=1ugu8:553
46
47The resource https://gl.wikipedia.org/static/images/project-logos/glwiki.png was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
48
49load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:111 jQuery.Deferred exception: Cannot read property '1' of null TypeError: Cannot read property '1' of null
50
51 at mw.cx.ui.Categories.removeCategoryNamespace (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:740:1054)
52
53 at mw.cx.ui.Categories.<anonymous> (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:741:749)
54
55 at Array.map (<anonymous>)
56
57 at mw.cx.ui.Categories.mapCategories (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:741:694)
58
59 at mw.cx.ui.Categories.createCategoryListing (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:741:906)
60
61 at mw.cx.ui.Categories.render (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:740:1535)
62
63 at new mw.cx.ui.Categories (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:740:905)
64
65 at MwCXInitTranslation.<anonymous> (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:664:911)
66
67 at mightThrow (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:109:149)
68
69 at process (https://gl.wikipedia.org/w/load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cx.wikibase.link%7Cext.visualEditor.mwextensionmessages%7Cmediawiki.action.view.redirectPage%7Cmediawiki.deflate%2Cpulsatingdot%7Cmediawiki.interface.helpers.styles%7Cmediawiki.skinning.content.parsoid%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView%7Coojs-ui.styles.icons-accessibility%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:109:808) undefined
70
71jQuery.Deferred.exceptionHook @ load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:111
72
732load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:387 PopupWidget#toggle: Before calling this method, the popup must be attached to the DOM.
74
75OO.ui.warnDeprecation @ load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:387
76
77VM77:305 Uncaught TypeError: Cannot read property 'disableCategoryUI' of null
78
79 at MwCxTranslationController.mw.cx.TranslationController.publish (load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:696)
80
81 at VeInitMwCXTarget.OO.EventEmitter.emit (<anonymous>:305:483)
82
83 at VeInitMwCXTarget.ve.init.mw.CXTarget.onPublishButtonClick (load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:792)
84
85 at VeUiCXPublishTool.ve.ui.CXPublishTool.onSelect (load.php?lang=gl&modules=diffMatchPatch%2Cdompurify%2Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs|ext.cx.wikibase.link|ext.visualEditor.mwextensionmessages|mediawiki.action.view.redirectPage|mediawiki.deflate%2Cpulsatingdot|mediawiki.interface.helpers.styles|mediawiki.skinning.content.parsoid|mw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit|mw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage|mw.cx.init.Translation|mw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory|mw.cx.ui.Categories%2CCategoryMultiselectWidget%2CPageTitleWidget%2CTranslationToolWidget%2CTranslationView|oojs-ui.styles.icons-accessibility|ve.ce.CXLintableNode|ve.dm.CXLintableNode|ve.init.mw.CXTarget|ve.ui.CXDesktopContext%2CCXSurface&skin=monobook&version=nuzw6:802)
86
87 at OoUiBarToolGroup.OO.ui.ToolGroup.onMouseKeyUp (<anonymous>:272:512)
88
89 at OoUiBarToolGroup.OO.ui.ToolGroup.onDocumentMouseKeyUp (<anonymous>:272:247)


May be related to T242613: User-provided categories added to the translation are ignored when published

Event Timeline

Nikerabbit subscribed.

The thing that causes publishing failure is Uncaught TypeError: Cannot read property 'disableCategoryUI' of null. This stops code execution just before publishing ought to happen. This is because the categories UI is not fully initialized. This again is caused by the other error TypeError: Cannot read property '1' of null. The cause of this is a category page title which does not contain a namespace (or more accurately, a colon).

I was able to reproduce this easily:

  • Start a new draft
  • Add a category and wait for autosave
  • Reload the page

Output:

jquery.js?11c05:3841 jQuery.Deferred exception: Cannot read property '1' of null TypeError: Cannot read property '1' of null
    at mw.cx.ui.Categories.removeCategoryNamespace (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:37:47)
    at mw.cx.ui.Categories.<anonymous> (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:108:16)
    at Array.map (<anonymous>)
    at mw.cx.ui.Categories.mapCategories (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:105:20)
    at mw.cx.ui.Categories.createCategoryListing (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:122:27)
    at mw.cx.ui.Categories.render (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:58:36)
    at new mw.cx.ui.Categories (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js?2c574:25:7)
    at MwCXInitTranslation.<anonymous> (https://dev.translatewiki.net/w/extensions/ContentTranslation/modules/mw.cx.init.Translation.js?47d19:124:17)
    at mightThrow (https://dev.translatewiki.net/w/resources/lib/jquery/jquery.js?11c05:3557:29)
    at process (https://dev.translatewiki.net/w/resources/lib/jquery/jquery.js?11c05:3625:12) undefined

Quick fix would be to not fail on such input, and a bit longer fix would be to investigate what is going wrong with user supplied categories.

Change 583089 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Allow publishing to continue even with broken categories

https://gerrit.wikimedia.org/r/583089

Unverified workaround until the patch is merged: remove all self-added categories before publishing.

Unverified workaround until the patch is merged: remove all self-added categories before publishing.

Great. Thanks for the update! I replied to the talk pages so that users can try the workaround while the fix gets reviewed and deployed.

Unfortunately, I think I gave a bad suggestion. I just tried this myself, and the category UI is not visible so it's impossible to remove any categories.

Change 583323 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Fix handling of user added categories

https://gerrit.wikimedia.org/r/583323

Change 583328 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Fix incorrectly stored user added categories

https://gerrit.wikimedia.org/r/583328

Change 583089 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Allow publishing to continue even with broken categories

https://gerrit.wikimedia.org/r/583089

Change 583522 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Fix missing namespace prefix in newly added categories in article

https://gerrit.wikimedia.org/r/583522

Change 583522 abandoned by Santhosh:
Fix missing namespace prefix in newly added categories in article

Reason:
in favor of https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/ /583323

https://gerrit.wikimedia.org/r/583522

Change 583323 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Fix handling of user added categories

https://gerrit.wikimedia.org/r/583323

Change 583561 had a related patch set uploaded (by KartikMistry; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@wmf/1.35.0-wmf.25] Fix handling of user added categories

https://gerrit.wikimedia.org/r/583561

Change 583561 abandoned by KartikMistry:
Fix handling of user added categories

Reason:
https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/ContentTranslation/ /583089/ is for SWAT.

https://gerrit.wikimedia.org/r/583561

Change 583562 had a related patch set uploaded (by KartikMistry; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@wmf/1.35.0-wmf.25] Allow publishing to continue even with broken categories

https://gerrit.wikimedia.org/r/583562

Change 583562 merged by Urbanecm:
[mediawiki/extensions/ContentTranslation@wmf/1.35.0-wmf.25] Allow publishing to continue even with broken categories

https://gerrit.wikimedia.org/r/583562

Mentioned in SAL (#wikimedia-operations) [2020-03-26T11:12:44Z] <urbanecm@deploy1001> Synchronized php-1.35.0-wmf.25/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js: SWAT: 1ea6bad: Allow publishing to continue even with broken categories (T248302) (duration: 01m 07s)

Change 583328 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Fix incorrectly stored user added categories

https://gerrit.wikimedia.org/r/583328

Change 583561 restored by KartikMistry:
Fix handling of user added categories

https://gerrit.wikimedia.org/r/583561

Change 583561 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@wmf/1.35.0-wmf.25] Fix handling of user added categories

https://gerrit.wikimedia.org/r/583561

https://gerrit.wikimedia.org/r/583561 has been deployed to wmf.25 branch (going to be fully deploy in all Wikis in few hours).