Steps to replicate the issue (include links if applicable):
- Run the findMissingFiles.php maintenance script: php maintenance/run.php findMissingFiles
What happens?: The script checks through the same handful of files over and over again. It doesn't get to every file, and the script never halts.
What should have happened instead?: The script should check every file exactly once.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): MediaWiki 1.44.0
Other information (browser name/version, screenshots, etc.): I learned about this from a friend of mine who was having this issue on the wiki he hosts. When investigating this on my own wiki, I modified the findMissingFiles.php code so I could see every file it was checking:
foreach ( $pathsByName as $path ) {
if ( $be->fileExists( [ 'src' => $path ] ) === false ) {
$this->output( "$path\n" );
} else { // I added this else block for debugging, it is not present in the original code
$this->output( "$path OK!\n" );
}
}This modification does not cause or otherwise affect the bug.