Page MenuHomePhabricator

Cannot upload photo in campaign: TypeError: item.setElementGroup is not a function
Closed, DuplicatePublic

Description

Steps to reproduce:

  1. open url https://commons.wikimedia.org/w/index.php?title=Special%3AUploadWizard&campaign=wlm-ua&id=80-385-0318&description=%D0%9C%D0%BE%D0%B3%D0%B8%D0%BB%D0%B0%20%D0%A1.%20%D0%9D.%20%D0%A0%D1%83%D1%87%D0%BA%D1%96%D0%B2%D1%81%D1%8C%D0%BA%D0%BE%D0%B3%D0%BE%2C%20%D0%B2%D1%87%D0%B5%D0%BD%D0%BE%D0%B3%D0%BE-%D0%B5%D0%BF%D1%96%D0%B4%D0%B5%D0%BC%D1%96%D0%BE%D0%BB%D0%BE%D0%B3%D0%B0%2C%20%D1%87%D0%BB%D0%B5%D0%BD%D0%B0-%D0%BA%D0%BE%D1%80.%20%D0%90%D0%9C%D0%9D%20%D0%A1%D0%A0%D0%A1%D0%A0%2C%20[[%3Auk%3A%D0%9A%D0%B8%D1%97%D0%B2%7C]]%2C%20[[%3Auk%3A%D0%92%D1%83%D0%BB%D0%B8%D1%86%D1%8F%20%D0%A1%D1%82%D0%B5%D1%86%D0%B5%D0%BD%D0%BA%D0%B0%20(%D0%9A%D0%B8%D1%97%D0%B2)%7C%D0%A1%D1%82%D0%B5%D1%86%D0%B5%D0%BD%D0%BA%D0%B0%20%D0%B2%D1%83%D0%BB.]]%2C%2018%3Cbr%2F%3E(%D0%B4%D1%96%D0%BB.%2024)&lat=&lon=&categories=&uselang=uk

(uselang=uk part is important for reproduction)

Select a photo and proceed. Describe step is empty in wizard and does not allow to finish the upload

Stacktrace from developer console on opening the Describe step:

load.php?debug=false&lang=uk&modules=ext.3d%2CeventLogging%2CnavigationTiming%2CwikimediaEvents|ext.centralNotice.geoIP|ext.centralauth.ForeignApi|ext.centralauth.centralautologin.clearcookie|ext.echo.api%2Cinit|ext.eventLogging.subscriber|ext.uls.common%2Ccompactlinks%2Ceventlogger%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts|ext.visualEditor.desktopArticleTarget.init|ext.visualEditor.supportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve|ext.wikimediaEvents.loggedin|jquery%2Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite|jquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Cspinner%2Csuggestions%2CtabIndex%2CtextSelection%2Cthrottle-debounce|jquery.makeCollapsible.styles|jquery.uls.data|mediawiki.ForeignApi%2CRegExp%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cexperiments%2Cfeedback%2Chtmlform%2Cicon%2CjqueryMsg%2Clanguage%2CmessagePoster%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil|mediawiki.ForeignApi.core|mediawiki.api.options|mediawiki.editfont.styles|mediawiki.legacy.wikibits|mediawiki.libs.jpegmeta%2Cpluralruleparser|mediawiki.page.ready%2Cstartup|mediawiki.template.regexp|mediawiki.ui.button%2Cicon|mediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget|mediawiki.widgets.DateInputWidget.styles|mmv.bootstrap%2Chead|mmv.bootstrap.autostart|oojs-ui-core.styles|oojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-location%2Cicons-moderation%2Cicons-movement%2Cindicators%2Ctextures|schema.UniversalLanguageSelector|skins.vector.js|user.defaults&skin=vector&version=0r9grwl:178 jQuery.Deferred exception: item.setElementGroup is not a function TypeError: item.setElementGroup is not a function
   at MWCategoryMultiselectWidget.OO.ui.mixin.GroupElement.insertItem (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.3d%2CeventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.echo.api%2Cinit%7Cext.eventLogging.subscriber%7Cext.uls.common%2Ccompactlinks%2Ceventlogger%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.supportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%7Cext.wikimediaEvents.loggedin%7Cjquery%2Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Cjquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Cspinner%2Csuggestions%2CtabIndex%2CtextSelection%2Cthrottle-debounce%7Cjquery.makeCollapsible.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CRegExp%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cexperiments%2Cfeedback%2Chtmlform%2Cicon%2CjqueryMsg%2Clanguage%2CmessagePoster%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil%7Cmediawiki.ForeignApi.core%7Cmediawiki.api.options%7Cmediawiki.editfont.styles%7Cmediawiki.legacy.wikibits%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.template.regexp%7Cmediawiki.ui.button%2Cicon%7Cmediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-location%2Cicons-moderation%2Cicons-movement%2Cindicators%2Ctextures%7Cschema.UniversalLanguageSelector%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=0r9grwl:406:829)
   at MWCategoryMultiselectWidget.oo.EmitterList.addItems (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.3d%2CeventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.echo.api%2Cinit%7Cext.eventLogging.subscriber%7Cext.uls.common%2Ccompactlinks%2Ceventlogger%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.supportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%7Cext.wikimediaEvents.loggedin%7Cjquery%2Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Cjquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Cspinner%2Csuggestions%2CtabIndex%2CtextSelection%2Cthrottle-debounce%7Cjquery.makeCollapsible.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CRegExp%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cexperiments%2Cfeedback%2Chtmlform%2Cicon%2CjqueryMsg%2Clanguage%2CmessagePoster%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil%7Cmediawiki.ForeignApi.core%7Cmediawiki.api.options%7Cmediawiki.editfont.styles%7Cmediawiki.legacy.wikibits%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.template.regexp%7Cmediawiki.ui.button%2Cicon%7Cmediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-location%2Cicons-moderation%2Cicons-movement%2Cindicators%2Ctextures%7Cschema.UniversalLanguageSelector%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=0r9grwl:374:928)
   at MWCategoryMultiselectWidget.OO.ui.mixin.GroupElement.addItems (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.3d%2CeventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.echo.api%2Cinit%7Cext.eventLogging.subscriber%7Cext.uls.common%2Ccompactlinks%2Ceventlogger%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.supportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%7Cext.wikimediaEvents.loggedin%7Cjquery%2Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Cjquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Cspinner%2Csuggestions%2CtabIndex%2CtextSelection%2Cthrottle-debounce%7Cjquery.makeCollapsible.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CRegExp%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cexperiments%2Cfeedback%2Chtmlform%2Cicon%2CjqueryMsg%2Clanguage%2CmessagePoster%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil%7Cmediawiki.ForeignApi.core%7Cmediawiki.api.options%7Cmediawiki.editfont.styles%7Cmediawiki.legacy.wikibits%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.template.regexp%7Cmediawiki.ui.button%2Cicon%7Cmediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-location%2Cicons-moderation%2Cicons-movement%2Cindicators%2Ctextures%7Cschema.UniversalLanguageSelector%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=0r9grwl:406:488)
   at new UWCategoriesDetailsWidget (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:117:989)
   at mw.UploadWizardDetails.buildInterface (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:192:867)
   at mw.UploadWizardDetails.attach (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:197:938)
   at MWUploadWizardUpload.<anonymous> (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:55:961)
   at Function.each (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.3d%2CeventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.echo.api%2Cinit%7Cext.eventLogging.subscriber%7Cext.uls.common%2Ccompactlinks%2Ceventlogger%2Cinit%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.supportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve%7Cext.wikimediaEvents.loggedin%7Cjquery%2Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Cjquery.accessKeyLabel%2CcheckboxShiftClick%2Cclient%2Ccookie%2CgetAttrs%2ChighlightText%2ClengthLimit%2CmakeCollapsible%2Cspinner%2Csuggestions%2CtabIndex%2CtextSelection%2Cthrottle-debounce%7Cjquery.makeCollapsible.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CRegExp%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2CconfirmCloseWindow%2Ccookie%2Cexperiments%2Cfeedback%2Chtmlform%2Cicon%2CjqueryMsg%2Clanguage%2CmessagePoster%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil%7Cmediawiki.ForeignApi.core%7Cmediawiki.api.options%7Cmediawiki.editfont.styles%7Cmediawiki.legacy.wikibits%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.template.regexp%7Cmediawiki.ui.button%2Cicon%7Cmediawiki.widgets.CategoryMultiselectWidget%2CDateInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Coojs-ui-core.styles%7Coojs-ui.styles.icons-alerts%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-interactions%2Cicons-location%2Cicons-moderation%2Cicons-movement%2Cindicators%2Ctextures%7Cschema.UniversalLanguageSelector%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=0r9grwl:130:987)
   at UWControllerDetails.uw.controller.Details.load (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:55:673)
   at UWControllerDeed.uw.controller.Step.moveNext (https://commons.wikimedia.org/w/load.php?debug=false&lang=uk&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=115gd1a:49:900) undefined

Event Timeline

intracer created this task.Aug 28 2018, 7:20 AM
Restricted Application added a project: Multimedia. · View Herald TranscriptAug 28 2018, 7:20 AM
Restricted Application added subscribers: Base, Aklapper. · View Herald Transcript
intracer updated the task description. (Show Details)Aug 28 2018, 7:20 AM
intracer updated the task description. (Show Details)
intracer updated the task description. (Show Details)Aug 28 2018, 7:23 AM
intracer updated the task description. (Show Details)
Aklapper added subscribers: Romaine, Atsirlin.

@intracer: Why is this assigned to @MarkTraceur? Was there some previous conversation on IRC / via email with him?

Aklapper renamed this task from Cannot upload photo: TypeError: item.setElementGroup is not a function to Cannot upload photo in campaign: TypeError: item.setElementGroup is not a function.Aug 28 2018, 9:21 AM
Aklapper triaged this task as High priority.
Aklapper updated the task description. (Show Details)

For debug=true I also get the line PopupWidget#toggle: Before calling this method, the popup must be attached to the DOM. oojs-ui-local.js:9:3 .

Stacktrace here:

jQuery.Deferred exception: item.setElementGroup is not a function OO.ui.mixin.GroupElement.prototype.insertItem@https://commons.wikimedia.org/w/resources/lib/oojs-ui/oojs-ui-core.js?52cb0:2489:2
oo.EmitterList.prototype.addItems@https://commons.wikimedia.org/w/resources/lib/oojs/oojs.jquery.js?b1631:1099:13
OO.ui.mixin.GroupElement.prototype.addItems@https://commons.wikimedia.org/w/resources/lib/oojs-ui/oojs-ui-core.js?52cb0:2466:2
UWCategoriesDetailsWidget@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/details/uw.CategoriesDetailsWidget.js?c2116:34:3
buildInterface@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/mw.UploadWizardDetails.js?ed0d8:102:29
attach@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/mw.UploadWizardDetails.js?ed0d8:301:6
uw.controller.Details.prototype.load/<@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/controller/uw.controller.Details.js?d4610:71:4
each@https://commons.wikimedia.org/w/resources/lib/jquery/jquery.js?09dd6:362:10
uw.controller.Details.prototype.load@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/controller/uw.controller.Details.js?d4610:61:3
uw.controller.Step.prototype.moveNext@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/controller/uw.controller.Step.js?0b078:156:4
uw.controller.Deed.prototype.moveNext/<@https://commons.wikimedia.org/w/extensions/UploadWizard/resources/controller/uw.controller.Deed.js?f7eee:84:5
mightThrow@https://commons.wikimedia.org/w/resources/lib/jquery/jquery.js?09dd6:3583:21
resolve/</process<@https://commons.wikimedia.org/w/resources/lib/jquery/jquery.js?09dd6:3651:12
 undefined
Aklapper removed MarkTraceur as the assignee of this task.Aug 28 2018, 9:36 AM
Aklapper added a subscriber: MarkTraceur.

Ah. Looks like the same as T202760: UploadWizard: Detail screen stays empty, publishing not possible hence boldly merging into T202760.