Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка PHP после установки модулей


Recommended Posts

Добрый день!

 

На сайте были установлены несколько модулей. Все установилось, ничего не предвещало беды. Пока утром не увидела, что на сайте, в категориях товаров пол страницы занимают ошибки! Отображение ошибок на сайте я убрала, а в логах невообразимое творится, со вчерашнего дня ругается и все тут. Как бы понять какой модуль виноват и по какой причине...:mellow: Уповаю на ваши знания и опыт!

 

2017-11-29 15:59:15 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/category.php on line 500
2017-11-29 15:59:15 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/category.php on line 501
2017-11-29 15:59:15 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/category.php on line 502

 

Установленные модули: обработка прайсов, фильтр, дополнительное описание и каталог статей. 

 

Версия ocStore 2.3.0.2.2

Link to comment
Share on other sites


Почему-то отключение модулей не помогло:(

 

Появились еще ошибки :

2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 372
2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 373
2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 374

 

А ругается что в том, что в другом случае на эти строчки:

 

$str_timer_1 = substr($result['date_end'],0,strpos($result['date_end'],"-")); 
$str_timer_2 = substr(str_replace("-","", substr($result['date_end'],strpos($result['date_end'],"-"))),0,2) - 1;
$str_timer_3 = substr(str_replace("-","", substr($result['date_end'],strpos($result['date_end'],"-"))),2);

Link to comment
Share on other sites


Почему-то отключение модулей не помогло:(

 

Появились еще ошибки :

2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 372
2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 373
2017-11-30 12:01:33 - PHP Notice:  Undefined index: date_end in /var/www/vhosts/snabzhenez.kz/httpdocs/system/storage/modification/catalog/controller/product/manufacturer.php on line 374

 

А ругается что в том, что в другом случае на эти строчки:

 

$str_timer_1 = substr($result['date_end'],0,strpos($result['date_end'],"-")); 
$str_timer_2 = substr(str_replace("-","", substr($result['date_end'],strpos($result['date_end'],"-"))),0,2) - 1;
$str_timer_3 = substr(str_replace("-","", substr($result['date_end'],strpos($result['date_end'],"-"))),2);

Link to comment
Share on other sites


40 минут назад, tanu6a сказал:

Undefined index: date_end

у производителей, категорий и товаров в чистом движке нет поля даты окончания чего-то там
Смотрите какой мод добавляет его и добавьте в базу

Edited by thentru
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

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.