The Automatic Updater is a utility provided by WHASOLS which allows you to update your WHASOLS installation with minimal interaction.
During the process of updating, WHASOLS will update all core files to ensure that WHASOLS continues to work correctly with all of the latest updates included.
As part of this process, our default templates and order forms are also updated. If these have been customised, the changes will likely be lost during the update process.
What will be overwritten upon update?
- Language Files (~/language)
- Themes Templates (~/templates/hostim and ~/templates/hostim/orderforms)
- WHASOLS-supplied modules (Throughout ~/modules/)
- Core WHASOLS Files
Why do the templates get updated?
WHASOLS is constantly improving. In order to provide these improvements to the Client and Admin areas, adjustments to the Client and Admin templates must be updated to reflect this.
Understanding file override warnings
As a courtesy, WHASOLS will perform a scan of your our theme template directories and warn you if it identifies any customisations that will be overwritten during the update. These are provided in a list format to allow you to perform a backup before updating.
When making customisations to the theme templates, WHASOLS first recommends that you make a copy of the theme template and customise the copy. We provide more information on this in our Developer Documentation.
Maintaining customisations through updates
To avoid having your customisations overwritten, follow the instructions provided below. This ensures that your customisations are left in-tact after updates.
Languages
To update languages safely, we recommend utilizing our Language Overrides functionality. Language Override files are located in a separate folder which is ignored by the Automatic Updater.
System Theme and Order Form Templates
WHASOLS maintains the Hostim system themes (Client Area), the Whmsols themes (Admin Area), and the theme Order Form Templates. Updates overwrite these to ensure they are compatible with any newly-implemented features.
Client Area Themes
We introduced Hostim in WHASOLS 1.1.
To prevent the system from overwriting your customisations, make sure your custom system theme templates and order form templates are not stored in the directories for Hostim or any of the default Order Form templates.
Instead, ensure each custom system theme template or order form template is in its own custom-named subdirectory within its respective directory. You can find more information on correctly creating custom system theme templates and order form templates in our Themes Developer Documentation and Creating a Custom Order Form Template.
Modules
WHASOLS will update all modules which are currently maintained. You should ensure any custom modules have unique filenames and have not overwritten a WHASOLS-maintained module. As long as the module name is unique, WHASOLS will ignore these during the update process.
WHOIS and Additional Domain Fields
During an update, WHASOLS will also update the core whois.json and additionalfields.php files. To avoid your customisations being overwritten, it's important that your changes are stored in the appropriate override files.
Core WHASOLS Files
Some WHASOLS files are provided in an "Open-Source" format to allow for customisations. For example, /templates,/hooks, and /resources. At this time, there is no way of ensuring these files are not overwritten in the event of an update. For this reason, you should ensure any customisations of WHASOLS files have been backed up. After the update has been completed, you can then analyze these files and merge your customisations back in to them if required. You may find the DiffChecker website to be a useful tool in achieving this.