Add-on hashes: rebuild hashes.json for XenForo add-ons

Add-on hashes: rebuild hashes.json for XenForo add-ons 1.0.3

No permission to download
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.

List of add-ons with their hashes.json status


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/.

One add-on with its changed files


Rebuild all confirmation


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.

The user group 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.

Options


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.
Author
Admin
Downloads
0
Views
1
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Admin

Back
Top