Title: Devision by Zero
Last modified: August 21, 2016

---

# Devision by Zero

 *  [tozq](https://wordpress.org/support/users/tozq/)
 * (@tozq)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/devision-by-zero/)
 * I installed woocommerce and mystile. After adding products, I got “Warning: Division
   by zero in /home/ehubinc/public_html/wp-content/plugins/woocommerce/templates/
   content-product.php on line 33” and
    “Warning: Division by zero in /home/ehubinc/
   public_html/wp-content/plugins/woocommerce/templates/content-product.php on line
   35” on home page. I have tried to do any adjustment without luck. Please help.
   Thank you!
 * 33 if ( 0 == ( $woocommerce_loop[‘loop’] – 1 ) % $woocommerce_loop[‘columns’]
   || 1 == $woocommerce_loop[‘columns’] )
    34 $classes[] = ‘first’; 35 if ( 0 ==
   $woocommerce_loop[‘loop’] % $woocommerce_loop[‘columns’] ) 36 $classes[] = ‘last’;
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  [Daniel Espinoza](https://wordpress.org/support/users/growdev/)
 * (@growdev)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/devision-by-zero/#post-4652836)
 * What versions of WooCommerce and Mystile are you using?
    Any other plugins installed?
   Any code in the functions.php file?
 *  Thread Starter [tozq](https://wordpress.org/support/users/tozq/)
 * (@tozq)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/devision-by-zero/#post-4652871)
 * – I have the latest version on both woocommerce and wp.
    – plugins: Akismet(stopped),
   Alipay For WooCommerce,Weight based shipping for Woocommerce,WooCommerce2.12,
   WooThemes Helper – theme: mystile – i did not touch functions.php
 * I found that the plugin “WooCommerce Customizer” is the one that causes the problem.
   Disabled it everything goes ok.
 *  [Daniel Espinoza](https://wordpress.org/support/users/growdev/)
 * (@growdev)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/devision-by-zero/#post-4652935)
 * Interesting. Well, glad it’s sorted!

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

The topic ‘Devision by Zero’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [zero](https://wordpress.org/support/topic-tag/zero/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daniel Espinoza](https://wordpress.org/support/users/growdev/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/devision-by-zero/#post-4652935)
 * Status: not resolved