XenForo Tutorials

Remove "Missing Files" warning in XF 2.1

Submitted by Yondu, , Thread ID: 197746

Yondu
Marry Poppins Y'all
Administrators
Level:
35
Reputation:
190
Posts:
1.52K
Likes:
329
Credits:
3.5K
12-02-2021, 08:50 PM
#1
Are you annoyed by the "missing or unexpected file" warning in your ACP? The solution below, works on XF 2.1.8 (and in our experience also for most XF 2.1.x versions) flawless. It doesn't change the functionality, but the ACP looks a little cleaner that way Wink.

1. Go to your FTP
2. Go to src/XF/Admin/Controller
3. Open index.php

Find & Remove:

Code:
/** @var \XF\Repository\FileCheck $fileCheckRepo */
$fileCheckRepo = $this->repository('XF:FileCheck');

Find & Remove:
Code:
'legacyConfig' => file_exists($this->app->container('config.legacyFile')),
'fileChecks' => $fileCheckRepo->findFileChecksForList()->fetch(5),

You should rebuild your cache afterwards to prevent problems.
[Image: wsUuw16j6oyxLLRnnK.gif]

Users browsing this thread: 1 Guest(s)