Warning in cart

  • Posts: 323
  • Thank you received: 18
  • Hikashop Business
4 years 11 months ago #314291

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2

In error log I keep geting
PHP Warning: Invalid argument supplied for foreach() in /home/xy/public_html/administrator/components/com_hikashop/classes/cart.php on line 2583

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
4 years 11 months ago #314313

Hi,

I don't have a foreach on our end on line 2583 of the file /administrator/components/com_hikashop/classes/cart.php
So I would first recommend to download again the install package from our website and install it on yours. And if you still have the problem, please provide the new line number of the error message.

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

  • Posts: 323
  • Thank you received: 18
  • Hikashop Business
4 years 11 months ago #314331

It seams that you add some lines in version 4.2.2. between october and now.
In file version my and yours new both are 4.2.2
So in new version this line is 2596.
Will try and report.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
4 years 11 months ago #314346

Hi,

Thank you for that. I've added a patch for the next version of HikaShop to avoid the warning.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum