Difference between revisions of "Restoration Of Pending Affiliate Commissions"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | An update routine in WHMCS 8.3.1 introduced a bug (CORE-17294) when using the Affiliate system with the commission delay feature. | + | An update routine in WHMCS 8.3.1 introduced a bug (CORE-17294) when using the [[Affiliates|Affiliate]] system with the commission delay feature. |
− | <div class="docs-alert-info"> | + | <div class="docs-alert-info"> |
+ | This bug only affects systems that updated directly to WHMCS 8.3.1 and that use the Affiliate system with the commission delay feature. | ||
+ | </div> | ||
− | = Overview = | + | ==Overview== |
− | The bug removes pending affiliate commission records during the update to | + | The bug removes pending affiliate commission records during the update to WHMCS 8.3.1. The error occurs only once and is not persistent. WHMCS 8.3.2 provides a fix that recreates any erroneously-removed records using the invoice and commission payout history. |
− | When you update from | + | When you update from WHMCS 8.3.1 to 8.3.2 or later, the removed data will be restored and, in most cases, no further action will be required. For more information, see [[#Further Considerations|Further Considerations]] below. |
If your system restored records as part of the upgrade, a notification banner will display in the Admin Area. | If your system restored records as part of the upgrade, a notification banner will display in the Admin Area. | ||
− | <div class="docs-alert-info"> | + | <div class="docs-alert-info"> |
+ | The notification banner is for informational purposes only. You can dismiss it by clicking the '''X'''. | ||
+ | </div> | ||
− | = Further Considerations = | + | ==Further Considerations== |
− | + | <div class="docs-alert-info"> | |
+ | Most users will only need to perform the update from WHMCS 8.3.1 to 8.3.2 or higher. | ||
+ | </div> | ||
− | Some conditions may affect | + | Some conditions may affect WHMCS 8.3.2's ability to recreate records. Manually inspect the restored data if any of these conditions apply to your WHMCS installation: |
− | + | ===Previous Manual Deletion of Pending Commissions=== | |
− | |||
− | == Previous Manual Deletion of Pending Commissions == | ||
The update will recreate any pending commission that does not have a corresponding payout history entry for the affected time frame. Because manually-removed pending commissions are not tracked in affiliate accounting records, they will be recreated with any other pending commissions. | The update will recreate any pending commission that does not have a corresponding payout history entry for the affected time frame. Because manually-removed pending commissions are not tracked in affiliate accounting records, they will be recreated with any other pending commissions. | ||
Line 27: | Line 31: | ||
If you normally remove pending commissions manually, you must check all of the restored records after you update. Then, manually remove the unwanted records again. | If you normally remove pending commissions manually, you must check all of the restored records after you update. Then, manually remove the unwanted records again. | ||
− | == Disabled Affiliate Systems == | + | ===Disabled Affiliate Systems=== |
The restorative routine will not run if the affiliate system is disabled. In these cases, no automated discovery or record recreation will be performed. | The restorative routine will not run if the affiliate system is disabled. In these cases, no automated discovery or record recreation will be performed. | ||
Line 36: | Line 40: | ||
# Log in to the WHMCS Admin Area. | # Log in to the WHMCS Admin Area. | ||
− | # Go to '''Configuration > System Logs'''. | + | # Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > [[System Logs]]'''. |
− | # Use the '''Search/Filter''' tab to search for | + | # Use the '''Search/Filter''' tab to search for <tt>Affiliate Enabled Disabled</tt>. |
# Examine the results: | # Examine the results: | ||
− | * If there are no results, no further action is required. | + | #* If there are no results, no further action is required. |
− | * If there are results, a entry date after your update to | + | #* If there are results, a entry date after your update to WHMCS 8.3.1 indicates that your system was enabled at the time of the update. |
− | == Commission Delay Change == | + | ===Commission Delay Change=== |
Decreases in the '''Commission Delay''' setting's value after you update may result in fewer restored records. The restorative routine only analyzes a limited invoice and commission history. The setting is required to determine the maximum invoice history to cross reference. The decrease will result in referencing an equally fewer number of days of history. | Decreases in the '''Commission Delay''' setting's value after you update may result in fewer restored records. The restorative routine only analyzes a limited invoice and commission history. The setting is required to determine the maximum invoice history to cross reference. The decrease will result in referencing an equally fewer number of days of history. | ||
− | To determine whether the setting was lowered after updating to | + | To determine whether the setting was lowered after updating to WHMCS 8.3.1: |
# Log in to the WHMCS Admin Area. | # Log in to the WHMCS Admin Area. | ||
− | # Go to '''Configuration > System Logs'''. | + | # Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > [[System Logs]]'''. |
− | # Use the '''Search/Filter''' tab to search for | + | # Use the '''Search/Filter''' tab to search for <tt>Affiliate Delay Commission Changed</tt>. |
# Examine the results: | # Examine the results: | ||
− | * If there are no results, no further action is required. | + | #* If there are no results, no further action is required. |
− | * If there are results, a entry date after your update to | + | #* If there are results, a entry date after your update to WHMCS 8.3.1 indicates that your setting was altered after update. |
If you know that the setting changed, review the invoice payment history for affiliate-tracked services. To find the oldest invoice to inspect, count the previous setting's number of days, working backwards from October 26th, 2021. For example, if your delay was 30 and is now 15, inspect paid affiliate invoices from September 26th to October 11th. | If you know that the setting changed, review the invoice payment history for affiliate-tracked services. To find the oldest invoice to inspect, count the previous setting's number of days, working backwards from October 26th, 2021. For example, if your delay was 30 and is now 15, inspect paid affiliate invoices from September 26th to October 11th. | ||
− | <div class="docs-alert-info"> | + | <div class="docs-alert-info"> |
+ | You can use a database backup from before your 8.3.1 update to compare the <tt>tblaffiliatespending</tt> table after the update to WHMCS 8.3.2. In most cases, the restorative routine will recreate all of the previous entries. Any entry that it did not recreate will have a correlative entry in the <tt>tblaffiliatehistory</tt> table clearing the pending amount. If an entry is still missing, check for the above conditions. | ||
+ | </div> | ||
WHMCS Technical Support is available to assist with and address any concerns or questions you may have. | WHMCS Technical Support is available to assist with and address any concerns or questions you may have. | ||
− | |||
− |
Latest revision as of 17:42, 3 May 2022
An update routine in WHMCS 8.3.1 introduced a bug (CORE-17294) when using the Affiliate system with the commission delay feature.
This bug only affects systems that updated directly to WHMCS 8.3.1 and that use the Affiliate system with the commission delay feature.
Contents
Overview
The bug removes pending affiliate commission records during the update to WHMCS 8.3.1. The error occurs only once and is not persistent. WHMCS 8.3.2 provides a fix that recreates any erroneously-removed records using the invoice and commission payout history.
When you update from WHMCS 8.3.1 to 8.3.2 or later, the removed data will be restored and, in most cases, no further action will be required. For more information, see Further Considerations below.
If your system restored records as part of the upgrade, a notification banner will display in the Admin Area.
The notification banner is for informational purposes only. You can dismiss it by clicking the X.
Further Considerations
Most users will only need to perform the update from WHMCS 8.3.1 to 8.3.2 or higher.
Some conditions may affect WHMCS 8.3.2's ability to recreate records. Manually inspect the restored data if any of these conditions apply to your WHMCS installation:
Previous Manual Deletion of Pending Commissions
The update will recreate any pending commission that does not have a corresponding payout history entry for the affected time frame. Because manually-removed pending commissions are not tracked in affiliate accounting records, they will be recreated with any other pending commissions.
If you normally remove pending commissions manually, you must check all of the restored records after you update. Then, manually remove the unwanted records again.
Disabled Affiliate Systems
The restorative routine will not run if the affiliate system is disabled. In these cases, no automated discovery or record recreation will be performed.
If you need to know whether the routine would have restored records if the Affiliate system had been enabled, contact WHMCS Technical Support. They can analyze your database, help determine whether any pending commissions exist, and assist you in creating them.
To determine whether the affiliate system was disabled after applying the 8.3.1 update, perform these steps:
- Log in to the WHMCS Admin Area.
- Go to Configuration () > System Logs.
- Use the Search/Filter tab to search for Affiliate Enabled Disabled.
- Examine the results:
- If there are no results, no further action is required.
- If there are results, a entry date after your update to WHMCS 8.3.1 indicates that your system was enabled at the time of the update.
Commission Delay Change
Decreases in the Commission Delay setting's value after you update may result in fewer restored records. The restorative routine only analyzes a limited invoice and commission history. The setting is required to determine the maximum invoice history to cross reference. The decrease will result in referencing an equally fewer number of days of history.
To determine whether the setting was lowered after updating to WHMCS 8.3.1:
- Log in to the WHMCS Admin Area.
- Go to Configuration () > System Logs.
- Use the Search/Filter tab to search for Affiliate Delay Commission Changed.
- Examine the results:
- If there are no results, no further action is required.
- If there are results, a entry date after your update to WHMCS 8.3.1 indicates that your setting was altered after update.
If you know that the setting changed, review the invoice payment history for affiliate-tracked services. To find the oldest invoice to inspect, count the previous setting's number of days, working backwards from October 26th, 2021. For example, if your delay was 30 and is now 15, inspect paid affiliate invoices from September 26th to October 11th.
You can use a database backup from before your 8.3.1 update to compare the tblaffiliatespending table after the update to WHMCS 8.3.2. In most cases, the restorative routine will recreate all of the previous entries. Any entry that it did not recreate will have a correlative entry in the tblaffiliatehistory table clearing the pending amount. If an entry is still missing, check for the above conditions.
WHMCS Technical Support is available to assist with and address any concerns or questions you may have.