Guides & Tutorials8.6 UpdateTroubleshootingUndefined constant error on Monthly Orders Report

Undefined constant error on Monthly Orders Report

Symptom

After updating to WHMCS 8.6.1, you may experience an Undefined Constant error when viewing the Monthly Orders report in PHP 8.1 environments:

Error: Undefined constant "tbladdons" in /path/to/whmcs/modules/reports/monthly_orders.php:81

Workaround

Upgrade your hosting environment to PHP 7.4.