WooCommerce Division by zero

Avatar
  • Answered
I have the error message "Warning: Division by zero in /home/larock5/public_html/blahblah.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 250 " showing on my product page. It is on a child theme as disappears when activate the parent. New to this and setting up my first websites, constructing two both with the same child theme, error is only on the one with wordpress version 2.6. First one with w p version 2.5.5 is fine, please can anyone advise how to get rid of this ugly message!
Avatar
Scott
Hello Carol La Rock, Thank you for your question on removing the warning message in WooCommerce. If the rest of the page is fine (meaning the prices and everything are correct) and the only thing wrong is the warning message, you can change your settings to suppress it. This is done in the php.ini file. You will want to set the error reporting to remove the warning messages by adding the following code to the current error reporting setting: ~E_WARNING So, for instance, if your current setting is: error_reporting = E_ALL & ~E_NOTICE Then change it to read as follows: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING Kindest Regards, Scott M