•  PHP Fatal error:  Uncaught DivisionByZeroError: Division by zero in /var/www/wordpress/wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php:327

    The plugin is installed on a Multisite WP install.. the error appears on sites that aren’t using WooCommerce. To fix this error I moved the instruction:

    <?php if( $bpCardCount > 1 ): ?>

    From Line 329 to 325 in inline-style.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support XootiX

    (@helloxootix)

    Hello,

    Its a division by zero error. Make sure the value here is greater than 0
    https://i.imgur.com/o6tNzSC.png

    Thread Starter hallcrash

    (@hallcrash)

    The error only occurs when the plugin is installed but not configured or used. I just updated to version 2.6.3 and the error is still present. I corrected the same way I did previously, although the line numbers are a little different.

    Thread Starter hallcrash

    (@hallcrash)

    Error still present in version 2.6.5

    Plugin Support XootiX

    (@helloxootix)

    Hello @hallcrash

    Sorry, I forgot updating this. Will take care of it in next update.
    Also, could you please clarify about “Not configured or used”? As soon as you install the plugin, the settings are automatically configured and the values are set.
    As mentioned earlier, the option “number of cards per row” value is 2 by default If you set it intentionally to 0, only then the error will show up.

    • This reply was modified 1 year ago by XootiX.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught DivisionByZeroError:’ is closed to new replies.