In a testwiki with FlaggedRevs enabled and wgForeignFileRepos set to Commons, on a certain page I get the following error:
Fatal error: Call to a member function exists() on a non-object in /path/to/wiki/includes/filerepo/FileRepo.php on line 104
If either FlaggedRevs or wgForeignFileRepos is disabled, it works fine. The affected page contains Commons images, both directly and through templates, but other pages containing such images work. The images have not been flagged; image- and template-related FlaggedRevs settings are left at default. Both MediaWiki and FlaggedRevs are fresh (r40555).
Version: unspecified
Severity: normal