[Skip to main content](#vessel-content)

#   Warning in cart

##

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

6 years 10 months ago [\#314291](#314291) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Warning in cart](/forum/2-general-talk-about-hikashop/898916-warning-in-cart#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&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 2583")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5ODkxNi13YXJuaW5nLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

6 years 10 months ago [\#314313](#314313) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Warning in cart](/forum/2-general-talk-about-hikashop/898916-warning-in-cart#314313 "-- 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&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 2583")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5ODkxNi13YXJuaW5nLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile") Topic Author
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

6 years 10 months ago [\#314331](#314331) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Warning in cart](/forum/2-general-talk-about-hikashop/898916-warning-in-cart#314331 "-- 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&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 2583")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5ODkxNi13YXJuaW5nLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

6 years 10 months ago [\#314346](#314346) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Warning in cart](/forum/2-general-talk-about-hikashop/898916-warning-in-cart#314346 "-- 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&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 2583")*

Hi,

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg5ODkxNi13YXJuaW5nLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
