Support » Plugin: WooCommerce » 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • What versions of WooCommerce and Mystile are you using?
    Any other plugins installed?
    Any code in the functions.php file?

    – 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.

    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.