Page MenuHomePhabricator

"TypeError: editingRestrictionWidget is null" on Special:Block
Closed, ResolvedPublic


In a console there's a TypeError: editingRestrictionWidget is null on Special:Block. I don't know for how long it's been there (a couple of days at least). Ever since that change to OOUI our local gadget on stopped working properly. I'm trying to fix it but this error keeps me bugged.


Related Gerrit Patches:

Event Timeline

Tufor created this task.Jan 2 2019, 8:07 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 2 2019, 8:07 PM
Tufor updated the task description. (Show Details)Jan 2 2019, 8:10 PM
Aklapper renamed this task from TypeError on Special:Block to "TypeError: editingRestrictionWidget is null" on Special:Block.Jan 2 2019, 8:47 PM
Aklapper added a subscriber: dbarratt.EditedJan 2 2019, 8:58 PM

Thanks for reporting this! Confirming. Also see Locating broken scripts for more info how to debug problems with a web browser's developer tools.

That specific line was introduced in rMW0813c46daaa7ca1b52008633a5eb8a769df67137 hence CC'ing its author who might know more.

TypeError: editingRestrictionWidget is null[Learn More] mediawiki.special.block.js:70:4

Side question

OOUI is unrelated to this bug. Feel free to ask OOUI questions in a OOUI support forum / mailing list.

BTW the tag system on Phabricator is awful, I picked some tags at random

How to report a bug explains how to set projects. Feel free to discuss specific Phab topics at Phabricator/Help. I entered "user blocking" and I got MediaWiki-User-management (BlockAndNuke is not available on Wikimedia sites and this task has nothing to do with UI-Standardization).

Restricted Application added a subscriber: MGChecker. · View Herald TranscriptJan 2 2019, 10:10 PM
dbarratt updated the task description. (Show Details)Jan 2 2019, 10:11 PM
Volker_E updated the task description. (Show Details)Jan 2 2019, 10:15 PM

@Tufor The conversion to OOUI was accomplished in December 2017. Are you sure, this has been broken ever since?
We're not offering a HTML forms only variant, as we're providing functionality that can not be resembled in a user-friendly way in pure HTML forms, provides consistent user-interface between platforms, and goes beyond their capability like for example the DateTimeInputWidget in Special:Block or the TagMultiselectWidget in Special:RecentChanges. If you have specific usability questions on OOUI widgets, feel free to file a task against the project.

Wargo added a subscriber: Wargo.Jan 3 2019, 1:02 AM

Change 482001 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/core@master] Add check for editing restriction widget on Special:Block

dbarratt closed this task as Resolved.Jan 3 2019, 5:34 PM
dbarratt claimed this task.
dbarratt reassigned this task from dbarratt to Tchanders.
dbarratt moved this task from Review to Done on the Anti-Harassment (Alef — א) board.

Change 482001 merged by jenkins-bot:
[mediawiki/core@master] Add check for editing restriction widget on Special:Block