Topic: Warning: Division by zero

I have this warning in my catalog on the category pages:
Warning: Division by zero in /home/MYSTUFF/public_html/shop/includes/catalog.inc.php on line 595

Line 595 says:
$cellwidth = floor(100/$itemsperrow);

I have no idea how to fix that.

Re: Warning: Division by zero

Check the page Configuration->Layout in your admin panel and make sure the "Items per row" setting is not set to zero. This would mean that no items at all would be shown in your catalog and would also result in the error you are getting.

Re: Warning: Division by zero

That fixed it. Thank you!