News:

Looking for documentation? Take a look on our wiki

Main Menu

Warning: Division by zero in vmmodel.php line 388

Started by TopPretender, November 27, 2012, 19:06:26 PM

Previous topic - Next topic

TopPretender

After upgrading to 2.0.14, there are a few issues.

One is when go to product details page, there is a warning on top of the page

Warning: Division by zero in /home/xxxxx/public_html/beta/administrator/components/com_virtuemart/helpers/vmmodel.php on line 388

That line in the code:    $limitStart = floor($count/$limit);

Does anyone else have the same issue? Thanks!!!

Milbo

I think your installation did not overwrite all files.

I just checked the code, we have there

if(empty($limit)){
$limit = 1.0;
}
$limitStart = floor($count/$limit);


and I am quite sure that we added this "if empty" months ago, maybe version 2.0.8 or so.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/