Forum Replies Created
-
AuthorPosts
-
March 10, 2023 at 10:51 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #188920Beats24-7Participant
Hi @Raju,
yes, it’s working again. Thank you!March 10, 2023 at 2:03 AM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187734Beats24-7ParticipantThis reply has been marked as private.March 8, 2023 at 8:31 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187664Beats24-7ParticipantThis reply has been marked as private.March 7, 2023 at 8:31 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187602Beats24-7ParticipantThis reply has been marked as private.March 7, 2023 at 8:24 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187600Beats24-7ParticipantThis reply has been marked as private.March 7, 2023 at 6:44 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187593Beats24-7ParticipantThis reply has been marked as private.March 7, 2023 at 11:17 AM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187529Beats24-7ParticipantThis reply has been marked as private.March 6, 2023 at 9:01 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187532Beats24-7ParticipantThis reply has been marked as private.March 4, 2023 at 1:14 AM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187443Beats24-7ParticipantI also contacted the support of my webhost and they confirmed that nothing has been updated. Unfortunately, they also weren’t able to help but advised that you should be able to help as debugging can only be done by the plugin team, as you have all the necessary tools and access to the plugin files.
The only thing that might have been changed on the server automatically is the sub version of php 8.0.xx to 8.0.28, but that’s not confirmed.
I am on version 3.6.0 of WCMp. Do you have any newer version where this issue might have been fixed, 3.7.x or 3.8.x maybe? Please let me know, thanks!
March 3, 2023 at 10:42 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187442Beats24-7ParticipantI am still running WordPress 5.7.2 and WooCommerce Version 5.5.4, so there hasn’t been any update.
March 3, 2023 at 10:38 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187441Beats24-7ParticipantI didn’t perform any update and I turned off WooCommerce and WordPress updates. I don’t know why it’s not working anymore.
Please help me to fix it. It’s just 3 lines of code. What do I need to change in the php code to not get the division by zero error. This should be fairly easy to fix for you. Please let me know, thanks!$total_sales_width = ( $report[‘total_sales’] > 0 ) ? round($report[‘total_sales’]) / round($report[‘total_sales’]) * 100 : 0;
$admin_earning_width = ( $report[‘admin_earning’] > 0 ) ? ( $report[‘admin_earning’] / round($report[‘total_sales’]) ) * 100 : 0;
$vendor_earning_width = ( $report[‘vendor_earning’] > 0 ) ? ( $report[‘vendor_earning’] / round($report[‘total_sales’]) ) * 100 : 0March 3, 2023 at 8:41 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187426Beats24-7ParticipantOk, thank you.
March 3, 2023 at 6:28 PM in reply to: An error of type E_ERROR – Uncaught DivisionByZeroError #187415Beats24-7ParticipantHello,
any update please? ThanksBeats24-7ParticipantOk, thank you very much.
Beats24-7ParticipantOk, thanks. Is there a github post to track the progress? Thanks again.
-
AuthorPosts