Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'getMainText' of null (TypeError: config.title is null)
Closed, ResolvedPublicPRODUCTION ERROR

Details

Request ID
undefined
Request URL
https://commons.wikimedia.org/wiki/Special:UploadWizard
Stack Trace
exception.trace
at new MWWCategoryTagItemWidget  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:1220:230
at MWCategoryMultiselectWidget.mw.widgets.CategoryMultiselectWidget.createTagItemWidget  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:1224:281
at MWCategoryMultiselectWidget.UWCategoriesDetailsWidget.categoriesWidget.createTagItemWidget  https://commons.wikimedia.org/w/load.php?lang=it&modules=ext.uploadWizard%7Cext.uploadWizard.page&skin=vector&version=1gdgm:125:942
at MWCategoryMultiselectWidget.OO.ui.TagMultiselectWidget.addTag  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:507:429
at MWCategoryMultiselectWidget.OO.ui.TagMultiselectWidget.addTagFromInput  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:506:6
at MWCategoryMultiselectWidget.OO.ui.TagMultiselectWidget.onInputBlur  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:503:267
at HTMLInputElement.dispatch  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:69:742
at HTMLInputElement.elemData.handle  https://commons.wikimedia.org/w/load.php?lang=it&modules=...&skin=vector&version=wget3:66:388

Event Timeline

Jdlrobson renamed this task from Uncaught TypeError: Cannot read property 'getMainText' of null to Uncaught TypeError: Cannot read property 'getMainText' of null (TypeError: config.title is null).Sep 14 2020, 9:26 PM
MarkTraceur triaged this task as Medium priority.Nov 2 2020, 6:14 PM
MarkTraceur added a subscriber: MarkTraceur.

Notes from a quick perusal of logstash: ~60 of these errors in the past 7 days, so not exactly a universal occurrence but not completely uncommon either. Unclear what effect this might have on the UI or if the users were able to circumvent the error somehow...in any case, I suspect this is something changing somewhere upstream and us needing to update the UW code. I feel like we've seen this bug before as well, but can't recall what exactly the issue was.

Marking as medium for now, but not sure whether this is severe enough for us to jump on it immediately (especially given likely disruptions throughout this month)

Notes from a quick perusal of logstash: ~60 of these errors in the past 7 days, so not exactly a universal occurrence but not completely uncommon either.

Note that this data does not currently include English Wikipedia (not sure if that's relevant here).

Note that this data does not currently include English Wikipedia (not sure if that's relevant here).

Well, UploadWizard isn't enabled on enwp so that makes sense :)

To reproduce: input something that is not a valid page title in the "Categories" field, press Enter or Tab.

Change 671306 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/core@master] mw.widgets.CategoryMultiselectWidget: Fix exception on invalid input

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

Change 671306 merged by jenkins-bot:
[mediawiki/core@master] mw.widgets.CategoryMultiselectWidget: Fix exception on invalid input

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