Hi, I got next messages (quantity messages = count products) at the FE category view
Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php
The url looks like
index.php?option=com_virtuemart&view=category&virtuemart_category_id=297&Itemid=819&lang=ru&language=ru-RU&orderby=`p`.product_sku
prices set for all products
Joomla 258, VM 2015a
the error shows usually also the line, please tell me.
Ah, sorry
Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1159 Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1159 Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1159
a rule without value? Interesting, I think about to set a vmdebug
There are two rules, without taxes and not published value added tax 18% (please see an attached image)
[attachment cleanup by admin]
Exactly, the plublished rule has no value and has very likely no effect.
I fully share your opinion
btw should be fixed in 15b
Thnx Milbo, after update to 2015b:
Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1161 Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1161 Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1161
Please post your line, I have if (strlen($mathop) == 2) { ?
With pleasure (for v.2015b)
if(!empty($value)){
if($sign == $plus){
$calculated = abs($price /(1 - (100.0 / $value)));
} else {
$calculated = abs($price /(1 + (100.0 / $value))); // line 1161
After update to 215c:
Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1173
Warning: Division by zero in /var/www/html/tests/victum/administrator/components/com_virtuemart/helpers/calculationh.php on line 1173
if(!empty($value)){
if($sign == $plus){
$calculated = abs($price /(1 - (100.0 / $value)));
} else {
$calculated = abs($price /(1 + (100.0 / $value))); // 1173
}