Title: Uncaught DivisionByZeroError:
Last modified: March 26, 2025

---

# Uncaught DivisionByZeroError:

 *  [hallcrash](https://wordpress.org/support/users/hallcrash/)
 * (@hallcrash)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/)
 *     ```wp-block-code
        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:
 *     ```wp-block-code
       <?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](https://wordpress.org/support/users/helloxootix/)
 * (@helloxootix)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/#post-18390987)
 * Hello,
   Its a division by zero error. Make sure the value here is greater than
   0[https://i.imgur.com/o6tNzSC.png](https://i.imgur.com/o6tNzSC.png)
 *  Thread Starter [hallcrash](https://wordpress.org/support/users/hallcrash/)
 * (@hallcrash)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/#post-18394363)
 * 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.
 * ![](https://i0.wp.com/techyouup.com/wp-content/uploads/2025/04/side-cart-error.
   png.png)
 *  Thread Starter [hallcrash](https://wordpress.org/support/users/hallcrash/)
 * (@hallcrash)
 * [1 year ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/#post-18448456)
 * Error still present in version 2.6.5
 *  Plugin Support [XootiX](https://wordpress.org/support/users/helloxootix/)
 * (@helloxootix)
 * [1 year ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/#post-18448654)
 * Hello [@hallcrash](https://wordpress.org/support/users/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](https://wordpress.org/support/users/helloxootix/).

Viewing 4 replies - 1 through 4 (of 4 total)

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

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [XootiX](https://wordpress.org/support/users/helloxootix/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/uncaught-divisionbyzeroerror-3/#post-18448654)
 * Status: not resolved