Notices and warning that show up a lot

  • Posts: 243
  • Thank you received: 1
  • Hikashop Business
1 year 9 months ago #251008

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : PHP Warning: Creating default object from empty value in /var/www/html/joomla_3xxx/components/com_hikashop/views/category/view.feed.php on line 119
PHP Notice: Undefined property: stdClass::$prices in /var/www/html/joomla_3xxx/components/com_hikashop/views/category/view.feed.php on line 180
PHP Notice: Trying to get property of non-object in /var/www/html/joomla_3xxx/components/com_hikashop/views/category/view.feed.php on line 180

A couple of errors that show up a lot in our server error log file. Both in the same file/com_hikashop/views/category/view.feed.php

line 119
$products[$k]->images[0]->$key = $name;
line 180
if($product->prices->price_value_with_tax != 0 ){

Please Log in or Create an account to join the conversation.

  • Posts: 62780
  • Thank you received: 9006
  • MODERATOR
1 year 9 months ago #251056

Hi,

Thank you for your feedback. We've added some fixes for that.
You can download the install package of the 2.6.4 and install it on your website and that will remove both.

The following user(s) said Thank You: jameswadsworth

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #284009

Hi Nicholas,

I’m getting similar errors (lots of them) related to this file in Hikashop.

The error report say line 119 has a problem but line 46 shows up occasionally too.

PHP 7.0.25, Joomla 3.8.2 and the latest version of Hikashop Business.

Regards,
Jason.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 62780
  • Thank you received: 9006
  • MODERATOR
7 months 2 weeks ago #284020

Hi,

It means that you have some products without any image set in them.
We'll add a check to avoid the warning in the next version.
What is the error on line 46 and what do you have there ?

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #284047

The error on line 46 doesn’t show now but when I do a DB check in Hikashop it shows the attached.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #284048

Attached is line 46.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 62780
  • Thank you received: 9006
  • MODERATOR
7 months 1 week ago #284090

Hi,

Thank you for the reports. We've added patches for the next version of HikaShop in order to fix these issues.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum