Title: Fatal error: Uncaught DivisionByZeroError
Last modified: March 24, 2017

---

# Fatal error: Uncaught DivisionByZeroError

 *  [indru](https://wordpress.org/support/users/indru/)
 * (@indru)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/)
 * Hello,
 * I have problem with products after installed bento theme:
 * Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /data01/virt30259/
   domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/includes/wc-template-
   functions.php:250 Stack trace: #0 /data01/virt30259/domeenid/www.carparts.ee/
   carcare/wp-content/plugins/woocommerce/includes/wc-template-functions.php(293):
   wc_get_loop_class() #1 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-
   includes/class-wp-hook.php(298): wc_product_post_class(Array, Array, 109) #2 /
   data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/plugin.php(203):
   WP_Hook->apply_filters(Array, Array) #3 /data01/virt30259/domeenid/www.carparts.
   ee/carcare/wp-includes/post-template.php(543): apply_filters(‘post_class’, Array,
   Array, 109) #4 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/
   post-template.php(423): get_post_class(Array, NULL) #5 /data01/virt30259/domeenid/
   www.carparts.ee/carcare/wp-content/plugins/woocommerce/templates/content-single-
   product.php(39): post_class() #6 /data01/virt30259/domeenid/www.carparts.ee/carc
   in /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/
   includes/wc-template-functions.php on line 250

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

 *  [TUT Support](https://wordpress.org/support/users/phpexpert21/)
 * (@phpexpert21)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8952232)
 * Hello Indru,
 * This sounds like plugin conflict. I’ve put together some possible solutions below
   which will help identify whether these are potential causes.
 * Checking for Plugin conflict
 * All of our themes have been developed following WordPress best practices and 
   as such plugin conflicts are rare. However, these do happen. To test whether 
   you’re issue is being caused by a conflicting plugin please follow the steps 
   below:
 * 1-Deactivate all of your plugins (except the Page Builder if installed).
 * 2-Now check to see if this has resolved any issues you’re experiencing.
 * 3-If the issues are resolved please re-activate each plugin 1 at a time. After
   each activation check whether the problematic feature is still working.
 * 4-Repeat step 3 until the problem re-occurs. The last plugin activated is the
   conflicting plugin
 * Please reply with the name of the conflicting plugin so we can look into a potential
   patch.
 * If either of the above solutions worked, great! If not, please do let us know
   and we’ll continue to look into this issue further.
 * Regards,
 * Manoj
 *  [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8952236)
 * Try deactivating all plugins and then activate the theme after that If that reactivate
   each plugin individually.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8952470)
 * Hey [@indru](https://wordpress.org/support/users/indru/),
 * thank you for choosing Bento!
 * Please try the following: download [this archive](http://satoristudio.net/files/Bento_possible-woo-fix_24.03.2017.zip),
   unzip it, and upload the resulting functions.php file into the /wp-content/themes/
   bento/ directory inside your WordPress installation, either by using an [FTP client](https://filezilla-project.org/)
   or via your hosting provider’s file manager. When prompted to replace the existing
   file, agree. After that, refresh your web page and let me know if the issue persists.
 * Sincerely,
    Andrii / Satori Studio
 *  Thread Starter [indru](https://wordpress.org/support/users/indru/)
 * (@indru)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8952552)
 * Hello,
 * It helped, now all running as it should be!
    Many thanks Andrii!
 *  Thread Starter [indru](https://wordpress.org/support/users/indru/)
 * (@indru)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8952690)
 * Hello again,
 * I have one question more, regarding shoping cart layout.
    I understand that the
   issue is related to the product name.
 * ![Okay](https://lh3.googleusercontent.com/Ng8aPIgMYJ7O6LjwtiKYkvXQ4p7E0cPLT4cYryXDMJ-
   giGfTx_zLOdKaHC-uJjSxLzPlAgjXaWqTZHNNNVizwTtNQLFvhukZElTu1zdyU3BXJi18LS00z2otvOpGK7MMLzOmDdoZPBGNPOv98FM25J33tPJ7MshQAhf4jVQeBmkBjn4zwcrtDPW2yCuiHGCl4NkRSuwIP9xoYyP4pJZ9DTFAgVjANiP1ebedMDMDfIrENteDgKP8SnQ2ijU_A1frC9zReteE2xExt6jKoovDoaPYnKc5sRJ5pXfMJ-
   xzRlwLoqOBH4uQAMEFvmacQ1IkRiHeiJgOH6UPBxcncdD83yW922NN85wQiSLTWHpheoi1dESyXdfhndIgNt-
   OPWFrCPD-76F5AZbAZ-J_iaB2G52vs22B7JH53GYWNhhupTaFexkWIpmZEO88lvebdKsRiI4PUn6lBicarJ81U9CPE8VXZlVmg4fet1xMxLCjpTR6IMPiXi1Y0Qj-
   T9T7km2Tg_iorjurpp4htnW76mtfSZs_0t5QIYvTdB274vTnRrGRKwGBNufPGT9J5FhyuY5sTagJ3rnnm4zBYj27N0kvQHbzN3mvqFaK2n9nCgBWvmR-
   GSQ3ElzVaW5-nrsfAyYJ4kkvFjryvDMq6QXIhia5nzwp06zLGP-xnEHghxWXVQ=w1613-h857-no)
 * ![Not okay](https://lh3.googleusercontent.com/yDGGGLMbfISr1e1GA7WOBVQLuF1rw3nRi0c-
   SLlcCtwcg_zT6V87YrZAK2PzTjKkWosIU-iDXpx827_jJslH-wlEyooYMielP7-sG8TMB1FymhfoPqmNiLv17KB3-
   eS4PQF09Qvi-yHXPrPQ9SI-_boZ5GmYc7pQ8uaCqfWgI6CJCumjUt8daemcKtYBxemm0_vDV75QHnVD_ZZDAS9A2DauETpy7hYoQJER7A7m44Avto8hBfrmUN8LWJFYZIOJSLP86C9GUSnkxVH2Qom1XBdl3XlJh5gfHaXFiNisuPxVOU4sFN6NFCGQYCSlWmflLSRspgeW86pydt_MIHX1pjAmzb5NOAVJjHHB6A9J3klCa6QofRJKjkde78RtnJrULpHMP5RFQrNg63GbnSXoZwoG2HFLK3ttyv8AVQ8ou4tdAtZvHaicAxCiXWHndEWCymOS2mtDd-
   rJMmksbXXQpXbDWirAWrp-HW2mmjY-DnxKB94yLbqLx_h0B7xXHhdgxtbW2qNa8eiUcj8WXbMqqRi57-
   YV-VrF02cl1I8px1cPdJB94OKyJi_3iiHoEHnS8qLIXS3gG6AX31xhWQ-xEHbfIKbezpJVw_5oH-rfYmwz6noLHnXR0Hvg1ER5NurmEVNYHkgKMinjq22rAa98Cdvlwqr58XU6bLuvFf1QpA
   =w1585-h837-no)
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8957321)
 * Hey [@indru](https://wordpress.org/support/users/indru/),
 * glad to hear the error message issue has been resolved! We’ll include the fix
   into the next version update of Bento.
 * Regarding your second question – could you please provide the URL of your website?
   I can’t seem to be able to reproduce the problem, and seeing the live code would
   enable me to give more precise recommendations. Thanks!
 * Sincerely,
    Andrii / Satori Studio
 *  Thread Starter [indru](https://wordpress.org/support/users/indru/)
 * (@indru)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8957336)
 * Hello,
 * I turned “Coming soon page” now off so You can see the content.
    This seems to
   be Firefox and Edge problem, Chrome works well. Try to add this: [https://www.carcare.ee/toode/x2010-supreme-shine-mikrokiudlapp/](https://www.carcare.ee/toode/x2010-supreme-shine-mikrokiudlapp/)
   product and go to shopping cart then.
 * Best regards,
    Indru
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8961197)
 * Hey Indru,
 * thank you for the additional info!
    Please visit the “Appearance – Editor” admin
   section, and in the editor field (the “style.css” file should be open by default,
   that one is exactly what you need), find the line which says: `.woocommerce-cart.
   entry-content .shop_table {` and inside its brackets remove the line which says:`
   table-layout: auto;` then save the changes and refresh the web page – let me 
   know if the issue persists!
 * Sincerely,
    Andrii / Satori Studio
 *  Thread Starter [indru](https://wordpress.org/support/users/indru/)
 * (@indru)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8962096)
 * Hello Andrii,
 * Worked okay, but ideally would then product field is wider and closer to product
   image.
 * ![](https://lh3.googleusercontent.com/QS3zqEGX84f_ee1mlQLjPYJcF6bkPYeBHKfqtmgt5j_9yY6vFzX5gErmXOQvpMrqS3bj-
   WZv32VHqURXLLd7eS4n9Vx9SG5H59yDjDpjWgKiqrKzYYo3I-BQ_GNz6Uj87OKvQlnvbikTNGY-TbFtUO2fWwDDC-
   nEPm9MENoadXd8F2Vn7qq7jrJn118EboiuU_M_khum1wVrtjkIr7ife4CvuXhcniOHe3DeU4zPFIvGmL5J7v0VpH1Ornai6MQnstcsiaxT3ogz3yRZmUq_DGGCj5U9ZsyzpcZW8vg-
   l5s09hCDoSAoDEeDOei-Sq8pmh6xvCwLeMWnuizY3GEmty8_uVChsi6tR-r2cQSyUG2Oh6Li4fHtqi70mdvn1ZK5nVMlhIUEDTLcsPvZIVR8VgloCO9sibMjNHoGjNWwaJ969g_PP2I59wP1YZ7ab9Z6Jt3-
   fg5reSM_ysCgoW9qf7GlgJiiGlNQ4NWH1-4UREZ9VABCHANRJ76s8gq8tYiUFvtPy92oRmKr-02xJNnnnAarBCfMjG0_YSLSACkPXEdxFQ5SJBvDng2qRJ88HKMcnVEtcy6CS_OQhg8fa4EL3EjQbm0BKiWDLgbGGQmacJmzcAGTRUwKLmOZLP2n7pC2Kat6MjS1atd9NWwidgd5E_XRU04p8ybGwPuPQ70aIA
   =w1215-h581-no)
 * Best regards,
    Indru
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8965757)
 * Hey Indru,
 * this is the default WooCommerce way of presenting the shopping cart table; you
   can try manipulating the column width, but it would inevitably involve either
   using the CSS you’ve just removed or explicitly defining column width, which 
   has potential to negatively affect the view on various device sizes and in case
   of various image-text combinations in the content (i.e. the actual dimensions
   of the product images and the length of product names).
 * Sincerely,
    Andrii / Satori Studio

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bento/2.5/screenshot.png)
 * Bento
 * [Support Threads](https://wordpress.org/support/theme/bento/)
 * [Active Topics](https://wordpress.org/support/theme/bento/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bento/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bento/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-divisionbyzeroerror/#post-8965757)
 * Status: not resolved