warning in products admin page after HikaShop Starter 4.2.1 upgrade

  • Posts: 4
  • Thank you received: 0
5 years 3 months ago #309324

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.7.4
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in /web/htdocs/mysite/home/administrator/components/com_hikashop/classes/field.php on line 653

Hi.
Hope someone can help me to solve the following warning appearing on top of products (only in products view) admin page after hikashop starter version upgrade:

Warning: Invalid argument supplied for foreach() in /web/htdocs/mysite/home/administrator/components/com_hikashop/classes/field.php on line 653

There are no other warning or error messages both in front-end and back-end.

Attachments:
Last edit: 5 years 3 months ago by mrc63.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
5 years 3 months ago #309330

Hi,

Thanks for your feedback.
Change the line:
if(empty($rows)) return;
to:
if(empty($rows) || empty($fields)) return;
in the file /administrator/components/com_hikashop/classes/field.php and it will remove the warning.
We'll add the patch on our end too.

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

  • Posts: 4
  • Thank you received: 0
5 years 3 months ago #309445

Thank you so much

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

Time to create page: 0.062 seconds
Powered by Kunena Forum