Persistent "Unexpected Contents" Warning on templates.xml

Don

Member
Licensed customer
I am receiving repeated email notifications from the automatic file health check reporting 1 file with unexpected contents. The file in question is:

src/addons/XF/_data/templates.xml

The health check has been flagging this same file on every single run for at least the past several days, as shown in the File Health Check Results log in my ACP. There are never any missing files, only this one file with unexpected contents, every time.

I have already restored the file from a clean XenForo installation package. The flag returned immediately on the next health check run, which suggests the file is being actively rewritten by the system itself, likely by an addon rebuild process rather than being the result of manual editing, file corruption, or malicious alteration.

Since this appears to be normal system behavior rather than an actual problem, the repeated email notifications are unnecessary. I have two questions:
  1. Is there a way to whitelist or acknowledge this specific file so it no longer triggers the health check alert?
  2. Is there a way to suppress the email notification for health check failures independently of disabling the health check itself? I would like the checks to continue running, but without being emailed about a known non-issue on every cycle.
Any guidance would be appreciated. Thank you.
 
which suggests the file is being actively rewritten by the system itself
You can check if the file is being changed by doing a checksum on the original from the setup files and once XF has reported unexpected contents. Before you faff around with that though, check the file sizes: if they're different then the files are different for sure and no need for a checksum check. MD5summer is good for generating these checksums.

 
Back
Top Bottom