Jump to content
Sign in to follow this  
AliShop

[Решено] Division by zero in catalog/view/theme/default/template/module/menu.tpl on line 40

Recommended Posts

Сегодня обнаружил непонятную ошибку в логах, она появляется каждую секунду. (чтоб вы понимали размер файла error.txt 600+ мб)

 

Вот что пишет:

2015-12-06 1:38:05 - PHP Warning: Division by zero in /home/****/domains/***.ua/public_html/catalog/view/theme/default/template/module/menu.tpl on line 40

 

Вот эта строчка:

 <?php $j = $i + ceil(count($manufacturers) / $manufacturer_column); ?>
 
Помогите разобраться. 

 

Share this post


Link to post
Share on other sites

Division by zero

Деление на ноль

 

<?php $j = $i + ceil(count($manufacturers) / $manufacturer_column); ?>

Значит $manufacturer_column равно нулю. Ищите причину

Share this post


Link to post
Share on other sites

Спасибо большое! Вроде разобрался.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.