Loading on a new site, I got the following:
Code:
[23-Feb-2026 23:32:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant "DATE_FORMAT_SHORT_NO_DAY" in /YOUR_ADMIN/stats_sales_report_graphs.php:260Stack trace:
#0 /YOUR_ADMIN/index.php(16): require()
#1 {main}
thrown in /YOUR_ADMIN/stats_sales_report_graphs.php on line 260
[23-Feb-2026 23:32:07 UTC] Request URI: /YOUR_ADMIN/index.php?cmd=stats_sales_report_graphs&report=4, IP address: 123.234.43.21
--> PHP Fatal error: Uncaught Error: Undefined constant "DATE_FORMAT_SHORT_NO_DAY" in /YOUR_ADMIN/stats_sales_report_graphs.php:260
Stack trace:
#0 /YOUR_ADMIN/index.php(16): require()
#1 {main}
thrown in /YOUR_ADMIN/stats_sales_report_graphs.php on line 260.
[23-Feb-2026 23:32:07 UTC] Request URI: /YOUR_ADMIN/index.php?cmd=stats_sales_report_graphs&report=4, IP address: 123.234.43.21
--> PHP Fatal error: Uncaught Error: Undefined constant "DATE_FORMAT_SHORT_NO_DAY" in /YOUR_ADMIN/stats_sales_report_graphs.php:260
Stack trace:
#0 /YOUR_ADMIN/index.php(16): require()
#1 {main}
thrown in /YOUR_ADMIN/stats_sales_report_graphs.php on line 260.
The define is missing from the file on GitHub but present in core files. I submitted a PR
Code:
'DATE_FORMAT' => 'm/d/Y', 'DATE_FORMAT_DATE_PICKER' => 'yy-mm-dd',
'DATE_FORMAT_LONG' => '%A %d %B, %Y',
'DATE_FORMAT_SHORT' => '%m/%d/%Y',
'DATE_FORMAT_SHORT_NO_DAY' => '%B %Y',
'DATE_FORMAT_SPIFFYCAL' => 'MM/dd/yyyy',
'DATE_TIME_FORMAT' => '%%DATE_FORMAT_SHORT%%' . ' %H:%M:%S',
'DEDUCTION_TYPE_DROPDOWN_0' => 'Deduct amount',
'DEDUCTION_TYPE_DROPDOWN_1' => 'Percent',
'DEDUCTION_TYPE_DROPDOWN_2' => 'New Price',