Title: PHP error
Last modified: August 8, 2024

---

# PHP error

 *  Resolved [Niko Vittaniemi](https://wordpress.org/support/users/nikov/)
 * (@nikov)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-error-665/)
 * Hey there,
 * With the latest WooCommerce version the accounting page just returns blank data.
 * ![](https://i0.wp.com/i.gyazo.com/38278fd5461f62ba7970ca1578c71a22.png?ssl=1)
 *  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](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](https://wordpress.org/support/users/bjorntech/)
 * (@bjorntech)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-error-665/#post-18020524)
 * 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.

 * ![](https://ps.w.org/woo-accounting-report/assets/icon.svg?rev=2086370)
 * [BjornTech Accounting Report for WooCommerce](https://wordpress.org/plugins/woo-accounting-report/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-accounting-report/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-accounting-report/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-accounting-report/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-accounting-report/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bjorntech](https://wordpress.org/support/users/bjorntech/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-error-665/#post-18020524)
 * Status: resolved