[XQowzwpAAEAAAHjy0MEAAABU] 2019-06-19 12:55:44: 嚴重例外類型 "BadMethodCallException"
|Resolved||mmodell||T220735 1.34.0-wmf.10 deployment blockers|
|Resolved||Lucas_Werkmeister_WMDE||T226102 BadMethodCallException on Commons: /includes/specials/pagers/ImageListPager.php: Call to a member function getUrl() on a non-object (boolean)|
He moved "File:蔣培火墓.jpg" to "File:蔡培火墓.jpg" and got errors, then this file lost.
Now I view https://commons.wikimedia.org/wiki/Special:ListFiles/Pbdragonwang and got:
[XQpBhgpAMEoAAKmzvyEAAACH] 2019-06-19 14:07:02: Fatal exception of type "BadMethodCallException"
In ImageListPager.php, it replaced wfLocalFile() with $services->getRepoGroup()->findFile(), but I think that’s actually the replacement for wfFindFile(), and the correct replacement for wfLocalFile() would be $services->getRepoGroup()->getLocalRepo()->newFile(). I should’ve checked this more thoroughly in review, sorry. I’ll upload a patch.