• Hey there,

    With the latest WooCommerce version the accounting page just returns blank data.

    And we are getting the following php error.

    [08-Aug-2024-07-01&end_date=2024/08/08 08:09:28 [error] 154637#154637: *70131 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: number_format(): Argument #2 ($decimals) must be of type int, string given in /data/wordpress/wp-content/plugins/woo-accounting-report/src/plugin/Helper.php:18

    Stack trace:

    #0 /data/wordpress/wp-content/plugins/woo-accounting-report/src/plugin/Helper.php(18): number_format()

    #1 /data/wordpress/wp-content/plugins/woo-accounting-report/src/plugin/TotalSales.php(108): BjornTech\AccountingReport\TotalSales::format_number()

    #2 /data/wordpress/wp-content/plugins/woo-accounting-report/src/plugin/AccountingReport.php(592): BjornTech\AccountingReport\TotalSales::render()

    #3 /data/wordpress/wp-content/plugins/woocommerce/includes/admin/views/html-report-by-date.php(96): BjornTech\AccountingReport\AccountingReport->get_main_chart()

    #4 /data/wordpress/wp-content/plugins/woo-accounting-report/src/plugin/AccountingReport.php(95): include(‘…’)

    #5 /data/wordpress/wp-content/plugins/woo-accounting-report/woo-accounting-report.php(332): BjornTech\AccountingReport” while reading response header from upstream, client: xxx, server: _, request: “GET /wp-admin/admin.php?page=wc-reports&tab=accounting&report=total-sales HTTP/1.1”, upstream: “fastcgi://xxx”, host: “xxx”, referrer: “https://xxx/wp-admin/admin.php?page=wc-reports&tab=accounting&range=custom&start_date=2024 08:09:28] WARNING: [pool wordpress] child 169556 said into stderr: “#5 /data/wordpress/wp-content/plugins/woo-accounting-report/woo-accounting-report.php(332): BjornTech\AccountingReport…”

Viewing 1 replies (of 1 total)
  • Plugin Author bjorntech

    (@bjorntech)

    Hello,

    Sorry for a late answer. I just released a new version that should fix this issue

    /tobbe

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error’ is closed to new replies.