Warning on classes/filter.php on line 1417

  • Posts: 184
  • Thank you received: 4
11 years 2 months ago #124852

-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.27

Hello

I am installing the new release in my test Environment. In production www.madeinvino.com I have the versione 2.1.2.

With this new release there is a warning when I open the product page.

Warning: Invalid argument supplied for foreach() in /home/madeinv1/public_html/test/administrator/components/com_hikashop/classes/filter.php on line 1417



Is something connected with this release? Could you fix it?

Thanks

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #124860

Hi,

It looks like you have a sort filter but without a sort value.
Can you tell us more about your filter (sort) configuration ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 184
  • Thank you received: 4
11 years 2 months ago #124888

Hi

you are right, is something related to this sort filter.



Some products haven't the rating.

If I disable this sort filter the warning disappears.

Could you fix it?

Thanks

Attachments:
Last edit: 11 years 2 months ago by Teto.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 months ago #124946

Hi,

Replace the file administrator/components/com_hikashop/classes/filter.php with the one in the archive enclosed and that should fix the warning.

File Attachment:

File Name: h07fa7e0.zip
File Size:15 KB

Attachments:

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

  • Posts: 184
  • Thank you received: 4
11 years 2 months ago #125015

Perfect. :)

Will you insert it in the release 2.2.2?

Thanks and regards

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 2 months ago #125093

Of course.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum