Keep every add-on's hashes.json correct, from your admin panel.
XenForo's File health check (Tools → File health check) uses each add-on's hashes.json to spot files that have changed or gone missing. When you fix a file by hand, apply a patch, or install an add-on that came without a hashes.json, the check starts flagging files that are actually fine, or can't check the add-on at all.
This add-on shows the state of every add-on's hashes.json and rebuilds it in one click.
What it does
Who can rebuild: user group permission
A new permission, Can rebuild add-on hashes.json files, is set per user group under Groups & permissions. The Administrative group gets it on install. Admins without it can still see the list, but can't rebuild. The page itself needs the usual Manage add-ons admin permission.
Options (Setup → Options → Add-on hashes)
Good to know
Requirements
Installing and upgrading
In your admin panel go to Add-ons, click Install/upgrade from archive and upload the zip you downloaded here. Upgrading to a new version works the same way.
Then open Add-ons → Add-on hashes.
XenForo's File health check (Tools → File health check) uses each add-on's hashes.json to spot files that have changed or gone missing. When you fix a file by hand, apply a patch, or install an add-on that came without a hashes.json, the check starts flagging files that are actually fine, or can't check the add-on at all.
This add-on shows the state of every add-on's hashes.json and rebuilds it in one click.
What it does
- A new page, Add-ons → Add-on hashes, lists every installed add-on with its file count and status: Up to date, Out of date (how many files changed, are new or are missing) or No hashes.json.
- Open any add-on to see exactly which files differ before you rebuild.
- Rebuild one add-on, or Rebuild all that need it.
- The file is built exactly the way XenForo's own release builder builds it (same checksums, paths and order), including files an add-on keeps outside its folder, such as js/ and styles/.
Who can rebuild: user group permission
A new permission, Can rebuild add-on hashes.json files, is set per user group under Groups & permissions. The Administrative group gets it on install. Admins without it can still see the list, but can't rebuild. The page itself needs the usual Manage add-ons admin permission.
Options (Setup → Options → Add-on hashes)
- Allow rebuilding official XenForo add-ons: off by default, so the health check keeps catching changes to XenForo's own add-ons. XenForo itself is never rebuilt.
- Keep a backup of the old hashes.json in internal_data/ffah_backups/ before each rebuild.
- Check files when listing add-ons: turn off on very large sites to keep the list fast.
Good to know
- Rebuilding means the files on your server now are treated as correct, so only rebuild after changes you made or trust.
- Each rebuild is recorded in the admin log.
- The web server needs write access to the add-on's folder; the list shows a lock when it doesn't.
Requirements
- XenForo 2.3.
Installing and upgrading
In your admin panel go to Add-ons, click Install/upgrade from archive and upload the zip you downloaded here. Upgrading to a new version works the same way.
Then open Add-ons → Add-on hashes.