Steps to replicate the issue (include links if applicable):
- choose the old version of a file and click "Change visibility of selected file versions" as an admin
- choose "Hide file content" and click Apply
(tested on https://commons.wikimedia.org/w/index.php?target=File%3AAnonymous_-_Portret_van_koning_Karel_Emanuel_III_van_Savoye.jpg&type=oldimage&title=Special%3ARevisionDelete&ids%5B20260420124318%5D=1 few times)
What happens?:
[3fc10be0-3060-452f-a743-047eae50b802] 2026-04-20 12:45:00: Fatal exception of type "Error"
What should have happened instead?:
File revision should not be available to non-admin users.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Error
- mwversion: 1.46.0-wmf.24
- timestamp: 2026-04-20T12:45:00.983Z
- phpversion: 8.3.30
- reqId: 3fc10be0-3060-452f-a743-047eae50b802
- Find reqId in Logstash
[{reqId}] {exception_url} Error: Class "MediaWiki\RevisionDelete\MainConfigNames" not found