Page MenuHomePhabricator

FlaggedRevs conflicts with FileRepo
Closed, ResolvedPublic

Description

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

Details

Reference
bz15505

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:22 PM
bzimport set Reference to bz15505.

.de wiki has this config and does not have this problem

More error handling added in r40560 in FileRepo.php, but this sounds more like some config is broken.