Page MenuHomePhabricator

JavaScript Error: "No infusion data found: mw-input-wpTarget" on Special:Unblock
Closed, ResolvedPublicBUG REPORT


What is the problem?

When attempting to unblock a user or IP via Special:Unblock/<user or IP>, I see a JavaScript error in the console:

Error: No infusion data found: mw-input-wpTarget

It seems to happen after in T257662.

It might be because it is attempting to infuse an input that is already filled/immutable.

Steps to reproduce problem
  1. Block a user/IP (or find a user/IP which is already blocked)
  2. Go to Special:Unblock/<user or IP>
  3. Open browser console/devtools

Browser: Firefox 102
Wiki(s): MediaWiki 1.41.0-alpha (6b10489) 15:41, 27 March 2023.

Event Timeline

The field wpTarget is hidden and there is nothing OOUI can do on hidden fields

Just as note: Special:Unblock share the code with Special:Block, so T333359 can break it again

Change 903749 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] Fix javascript error on Special:Unblock/<user>

Change 903749 merged by jenkins-bot:

[mediawiki/core@master] Fix javascript error on Special:Unblock/<user>

matmarex removed a project: Patch-For-Review.
matmarex subscribed.