Steps to replicate the issue (include links if applicable):
Visit https://commons.wikimedia.org/w/index.php?curid=162194998 or https://commons.wikimedia.org/w/index.php?curid=162194433
What happens?:
'Fatal exception of type "LogicException"' is displayed:
MediaWiki internal error. Original exception: [1cf53daf-abcb-458c-9cfc-3e1dbc1f176d] 2025-03-17 07:18:33: Fatal exception of type "LogicException" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
MediaWiki internal error. Original exception: [7c3f9b32-003b-451b-a1c3-0dc95872da33] 2025-03-17 07:18:43: Fatal exception of type "LogicException" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
What should have happened instead?:
Pages should have loaded without an exception
Other information (browser name/version, screenshots, etc.):
All browsers