Support » Fixing WordPress » Warning: Division by zero

  • Hi all,

    I am not sure if I am in the correct category. I have recently installed WooCommerce and I am getting a fault.

    Warning: Division by zero in /home/eroticlondon/public_html/lnastationery.net/wp-content/plugins/woocommerce/templates/content-product.php on line 33

    Warning: Division by zero in /home/eroticlondon/public_html/lnastationery.net/wp-content/plugins/woocommerce/templates/content-product.php on line 35

    I do not know what to do. I am not good at fixing code. What do i Do?

    http://www.lnastationery.net/

Viewing 11 replies - 1 through 11 (of 11 total)
  • I just had a look, clicked on some purchases, reached your cart and everything was OK. What steps did you take to make the error occur?

    Thread Starter ZimNinja

    (@zimninja)

    No idea what I did, I install woocommerce and these errors were there.

    Do you think it is best to delete the plugin and re-install it and see if it happens again?

    C

    Well, like I say, I didn’t encounter the error. Re-installing certainly won’t do any harm.

    Thread Starter ZimNinja

    (@zimninja)

    ok i shall do that now. I will keep you posted.

    thanks for your help.

    Thread Starter ZimNinja

    (@zimninja)

    WPRanger

    I have deleted the plugin and re-installed it.

    I went through all the settings and saved each page and when I go to the shop

    http://www.lnastationery.net/shop/

    I get the broken code?

    Have no idea what to do…

    C

    Try going to your WooCommerce settings and hitting save. In particular, try setting/saving the column and product counts:

    WooCommerce -> Settings -> Pages. The settings are at the bottom.

    If that doesn’t fix it, this thread should really move to here:

    http://wordpress.org/support/plugin/woocommerce

    Thread Starter ZimNinja

    (@zimninja)

    I go to the pages section in woocommerce and there is no column and product counts.

    Just the pages they were created by the plugin.

    Any ideas?

    Hmmm. Did you try hitting save on any of the settings?

    Thread Starter ZimNinja

    (@zimninja)

    I went through every page in the settings and saved.

    Do you think it is the theme?

    C

    Probably not but I see you changed it anyway. Spend some time setting up WooCommerce to your preference and see if it goes away. It’ll be an unset setting or something not configured properly. like I say, maybe the WooCommerce support forum is the better place to ask.

    I had this same problem.

    If you are using the WooCommerce Product Archive Customiser plugin or the WooCommerce Product Details Customiser

    You might want to see my solution here

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Warning: Division by zero’ is closed to new replies.