Jump to content

Recommended Posts

Приветствую, друзья.

 

В карточке товара начала выходить ошибка сверху страницы такого рода:

Warning: Creating default object from empty value in xxxxx/view/ProductView.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at xxxxx/view/ProductView.php:154) in xxxxx/view/ProductView.php on line 270

Warning: Cannot modify header information - headers already sent by (output started at xxxxx/view/ProductView.php:154) in xxxxx/index.php on line 33

С чем это может быть связано и как это отключить?!

 

Спасибо за любую информацию.

Link to post
Share on other sites
  • Solution
$products = new StdClass();

 

перед вашей строкой вставьте. видимо вы добавили автоматический подбор рекомендуемых товаров.

Edited by mishanya
Link to post
Share on other sites

 

$products = new StdClass();

 

перед вашей строкой вставьте. видимо вы добавили автоматический подбор рекомендуемых товаров.

Вы как всегда на высоте. ))  Отлично заработало.

 

Большое спасибо ;)

Link to post
Share on other sites

Еще одно предупреждение начало выходить, когда в поиск вбиваешь товар, который не существует, а в результате поиска выходит такое:

Warning: min(): When only one parameter is given, it must be an array in xxxx/view/ProductsView.php on line 229

Warning: max(): When only one parameter is given, it must be an array in xxxx/view/ProductsView.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at xxxx/view/ProductsView.php:229) in xxxx/index.php on line 33

Как можно это решить?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...