Page MenuHomePhabricator

Error: Unknown widget type: id: mw-input-wpecho-notifications-page-linked-title-muted-list, class: mw.widgets.TitlesMultiselectWidget
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

What is the problem?

After making the option "Muted pages for page link notifications" (wpecho-notifications-page-linked-title-muted-list) global, when loading Special:Preferences I get the error in the browser console:

Error: Unknown widget type: id: mw-input-wpecho-notifications-page-linked-title-muted-list, class: mw.widgets.TitlesMultiselectWidget
load.php:1:900

If I make all my user options global, I not only get the same error message but my browser hangs for a short period of time.

Steps to reproduce problem
  1. Go to Special:GlobalPreferences
  2. Click the "Notifications" tab and scroll to the bottom
  3. Check the box next to "Muted pages for page link notifications" to make it global and submit
  4. Open the browser console and go to Special:Preferences
Environment

Browser: Firefox 78
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.38.0-alpha (f9ef38f) 08:48, 29 November 2021. GlobalPreferences 0.1.2 (b79a85b) 05:04, 19 November 2021.

Event Timeline

Change 742544 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/GlobalPreferences@master] Add missing dependency on mediawiki.widgets.TitlesMultiselectWidget

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

Change 742544 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] Add missing dependency on mediawiki.widgets.TitlesMultiselectWidget

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

dom_walden moved this task from QA 🐛 to Done 🏁 on the Community-Tech (CommTech-Sprint-14) board.

I have enabled all the global preferences I can and loaded the Special:Preferences form. I am no longer seeing any errors in the browser console.

I wanted to test setting globally as many different user preferences as I could find. Each wiki type (Wikidata, Wiktionary, etc.) has a slightly different set of user preferences which can be set globally.

Therefore, on beta, I tested English Wikipedia, Wiktionary, Wikisource, Wikidata, Commons, Wikibooks, Wikinews, Wikiversity and Wikivoyage. I did not test other language wikis, however, so I might have missed some user preferences.

After setting all the preferences globally, I am still experiencing a short hang. However, I think that is because I am using an older version of Firefox. I cannot reproduce it on Chrome or Firefox 94.

Moving straight to Done as there is nothing to see here.

Test environment: Various beta wikis (mentioned above) MediaWiki 1.38.0-alpha (cb912e4) 12:52, 30 November 2021. GlobalPreferences 0.1.2 (a946ed7) 00:07, 30 November 2021.