Fatal Error in WooCommerce Sales by Date Report
-
Hello WooCommerce Support Team,
I am encountering a critical error when accessing the “Sales by Date” report in the WooCommerce admin panel. Below are the details of the error:
Visit the page where the error was caught:
https://www.photowhoa.com/wp-admin/admin.php?page=wc-reports&range=custom&start_date=&end_date=2024-11-20&wc_reports_nonce=ab1279bfffError Message:
Uncaught TypeError: Unsupported operand types: string * int in /wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:412
Stack Trace:
An error of type E_ERROR was caused in line 412 of the file /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php. Error message: Uncaught TypeError: Unsupported operand types: string * int in /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:412
Stack trace:
#0 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php(39): WC_Report_Sales_By_Date->query_report_data()
#1 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php(454): WC_Report_Sales_By_Date->get_report_data()
#2 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/views/html-report-by-date.php(68): WC_Report_Sales_By_Date->get_chart_legend()
#3 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php(604): include('/chroot/home/a4...')
#4 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-reports.php(177): WC_Report_Sales_By_Date->output_report()
#5 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/views/html-admin-page-reports.php(81): WC_Admin_Reports::get_report('sales-by-date')
#6 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-reports.php(36): include_once('/chroot/home/a4...')
#7 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(343): WC_Admin_Reports::output()
#8 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-includes/class-wp-hook.php(324): WC_Admin_Menus->reports_page('')
#9 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#10 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /chroot/home/a45d7305/be523aed5d.nxcli.io/html/wp-admin/admin.php(259): do_action('woocommerce_pag...')
#12 {main}
thrownEnvironment Details:
- WooCommerce Plugin Path:
/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php
- Affected Line: 412
Steps to Reproduce:
- Navigate to WooCommerce > Reports > Sales by Date in the WordPress admin.
- The error is triggered, and the page fails to load.
Could you assist in resolving this issue or provide guidance on a temporary fix while awaiting a patch?
Looking forward to your prompt response.
Best regards,
Divya NarheThe page I need help with: [log in to see the link]
- WooCommerce Plugin Path:
- You must be logged in to reply to this topic.