How To Update WHMCS Module
(→Framework Cron Commands) |
(→Update Process) |
||
(10 intermediate revisions by one user not shown) | |||
Line 2: | Line 2: | ||
<meta name="description" content="We Will Guide You Step By Step And Show You How To Successfully Update Any WHMCS Module Designed By ModulesGarden."></meta> | <meta name="description" content="We Will Guide You Step By Step And Show You How To Successfully Update Any WHMCS Module Designed By ModulesGarden."></meta> | ||
− | + | =WHMCS Module Update Process= | |
− | + | ||
{| | {| | ||
Line 11: | Line 10: | ||
Carefully review the entire guide before proceeding to avoid potential complications. | Carefully review the entire guide before proceeding to avoid potential complications. | ||
|} | |} | ||
+ | |||
+ | ==Updating Major Versions== | ||
+ | {| | ||
+ | |style="padding: 10px 0px 30px 15px;"|'''Important notes on updating across major versions'''<br/> | ||
+ | When updating a module across major versions ''(for example, from 1.2.x to 1.4.x)'', it is strongly recommended to perform the update '''step by step''', moving through each major module version.<br/> | ||
+ | For example: | ||
+ | * First update to the latest available 1.3.x version | ||
+ | * Then update to the latest available 1.4.x version <br/> '''''Note:''' <code>x</code> refers to the latest release within given version (e.g., 1.3.4, 1.4.2, etc.).'' | ||
+ | |||
+ | Skipping major versions may lead to issues such as missing updates, errors during installation, or compatibility problems. | ||
+ | |||
+ | Before updating to each version, make sure that the module version you are moving to is compatible with your current: | ||
+ | * WHMCS version | ||
+ | * PHP version | ||
+ | * IonCube Loader version | ||
+ | |||
+ | '''If the module requires a newer version of WHMCS, PHP, or IonCube than the one you are using, be sure to upgrade them before proceeding.''' | ||
+ | |} | ||
+ | |||
==Update Process== | ==Update Process== | ||
{| | {| | ||
Line 16: | Line 34: | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 15px 15px;"|1. '''Backup your | + | |style="padding: 0px 0px 15px 15px;"|1. '''Backup your WHMCS installation:''' |
* Before proceeding, create a full backup of your WHMCS files and database. This step is crucial in case of an update failure or other issues. | * Before proceeding, create a full backup of your WHMCS files and database. This step is crucial in case of an update failure or other issues. | ||
|} | |} | ||
Line 34: | Line 52: | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 15px 15px;"|5. '''Adjust the license file (if required)''' | + | |style="padding: 0px 0px 15px 15px;"|5. '''Adjust the license file (if required):''' |
* In some cases, you may need to navigate to the module's folder and delete the existing <code>license.php</code> file. | * In some cases, you may need to navigate to the module's folder and delete the existing <code>license.php</code> file. | ||
* Rename <code>license_RENAME.php</code> to <code>license.php</code> and edit it by entering your module’s license key. | * Rename <code>license_RENAME.php</code> to <code>license.php</code> and edit it by entering your module’s license key. | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 15px 15px;"|6. '''Clear | + | |style="padding: 0px 0px 15px 15px;"|6. '''Clear cache:''' |
* Navigate to ''/your_whmcs/template_c/'' and delete all files except ''index.php'' to remove old cache data. | * Navigate to ''/your_whmcs/template_c/'' and delete all files except ''index.php'' to remove old cache data. | ||
* Refresh your browser cache using one of the following key combinations: | * Refresh your browser cache using one of the following key combinations: | ||
Line 47: | Line 65: | ||
{| | {| | ||
|style="padding: 0px 0px 15px 15px;"|7. '''Check for additional update steps:''' | |style="padding: 0px 0px 15px 15px;"|7. '''Check for additional update steps:''' | ||
− | * Some modules may require additional actions for a successful update | + | * Some modules may require additional actions for a successful update. |
* Review the module’s [https://www.docs.modulesgarden.com documentation] for specific instructions related to file permissions, cron jobs, integration codes, or PHP version compatibility. | * Review the module’s [https://www.docs.modulesgarden.com documentation] for specific instructions related to file permissions, cron jobs, integration codes, or PHP version compatibility. | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 15px 15px;"|8. ''' | + | |style="padding: 0px 0px 15px 15px;"|8. '''Deactivate and reactivate the updated module:''' |
* Log in to the WHMCS admin area. | * Log in to the WHMCS admin area. | ||
* Navigate to '' 'System Settings' → 'Addon Modules' '' and locate the updated module. | * Navigate to '' 'System Settings' → 'Addon Modules' '' and locate the updated module. | ||
− | * Click the '''Activate''' button to enable the module. | + | * Click the '''Deactivate''' button to disable the module. |
+ | * Click the '''Activate''' button to enable the module again. | ||
|} | |} | ||
{| | {| | ||
Line 72: | Line 91: | ||
* '''Check available product versions''' for updates: | * '''Check available product versions''' for updates: | ||
− | php cron.php | + | php cron.php upgrade list |
* '''Run an upgrade to a specified version''' (replace <version> with target version number): | * '''Run an upgrade to a specified version''' (replace <version> with target version number): | ||
− | php cron.php | + | php cron.php upgrade run <version> |
''for example:'' | ''for example:'' | ||
− | php cron.php | + | php -q /.../whmcs/modules/addons/WordressManager/cron/cron.php upgrade run 3.0.0 |
* '''Activate the module''' (triggers module logic without affecting WHMCS activation): | * '''Activate the module''' (triggers module logic without affecting WHMCS activation): | ||
− | php cron.php | + | php cron.php activate |
* '''Deactivate the module''' (triggers module logic without affecting WHMCS activation): | * '''Deactivate the module''' (triggers module logic without affecting WHMCS activation): | ||
− | php cron.php | + | php cron.php deactivate |
* '''Deactivate the module''' and '''remove database tables''' (irreversible action, permanently deletes module-related tables): | * '''Deactivate the module''' and '''remove database tables''' (irreversible action, permanently deletes module-related tables): | ||
− | php cron.php | + | php cron.php deactivate --remove-database-tables |
|} | |} | ||
<!-- | <!-- |
Latest revision as of 09:05, 13 August 2025
Contents |
[edit] WHMCS Module Update Process
This guide provides essential instructions for updating any ModuelsGarden modules for WHMCS. Follow the steps one by one to ensure a smooth update process while minimizing the risk of data loss or unexpected issues. Carefully review the entire guide before proceeding to avoid potential complications. |
[edit] Updating Major Versions
Important notes on updating across major versions When updating a module across major versions (for example, from 1.2.x to 1.4.x), it is strongly recommended to perform the update step by step, moving through each major module version.
Skipping major versions may lead to issues such as missing updates, errors during installation, or compatibility problems. Before updating to each version, make sure that the module version you are moving to is compatible with your current:
If the module requires a newer version of WHMCS, PHP, or IonCube than the one you are using, be sure to upgrade them before proceeding. |
[edit] Update Process
To successfully update a module, follow these steps: |
1. Backup your WHMCS installation:
|
2. Download the latest version of the module from our client area. |
3. Remove the old module files:
|
4. Upload and extract the new files:
|
5. Adjust the license file (if required):
|
6. Clear cache:
|
7. Check for additional update steps:
|
8. Deactivate and reactivate the updated module:
|
9. Reissue the license:
|
[edit] Module Cron Commands
The following cron commands are available for managing modules based on the new framework: |
php cron.php upgrade list
php cron.php upgrade run <version> for example: php -q /.../whmcs/modules/addons/WordressManager/cron/cron.php upgrade run 3.0.0
php cron.php activate
php cron.php deactivate
php cron.php deactivate --remove-database-tables |
[edit] Conclusions
Following these steps will ensure proper module management in WHMCS. Always back up your installation before making changes, and verify the module functionality after updating. If any issues arise, refer to your module documentation or contact our support team for assistance. |