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

#   Invalid Argument

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

15 years 7 months ago [\#13922](#13922) by [james](/forum/user/1247-james "View james's Profile")  *[Invalid Argument](/forum/3-bug-report/13922-invalid-argument#13922 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")* was created by *[james](/forum/user/1247-james "View james's Profile")*

I am getting this error message -

Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com_hikashop/views/product/view.html.php on line 508

Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com_hikashop/views/product/view.html.php on line 558

You can view it here - http://www.groweasyorganics.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid=7&amp;name=mineralplex-gallon&amp;Itemid=59&amp;category_pathway=0

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 86359
- Thank you received: 14296
-
-

15 years 7 months ago [\#13931](#13931) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid Argument](/forum/3-bug-report/13922-invalid-argument#13931 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")*

You're using HikaShop 1.4.1. Please update to the latest version and try again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 6 months ago [\#14078](#14078) by [AllisonR](/forum/user/1880-allisonr "View AllisonR's Profile")  Replied by *[AllisonR](/forum/user/1880-allisonr "View AllisonR's Profile")* on topic *[Re: Invalid Argument](/forum/3-bug-report/13922-invalid-argument#14078 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")*

Hi

I'm using the latest version and am still getting this error when importing products. Everything looks fine, though, but I don't want to run into problems later.

Warning: Invalid argument supplied for foreach() in /home/simplyco/domains/simplycolostrum.co.za/subdomains/master/public_html/administrator/components/com_hikashop/views/product/view.html.php on line 203

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 86359
- Thank you received: 14296
-
-

15 years 6 months ago [\#14082](#14082) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid Argument](/forum/3-bug-report/13922-invalid-argument#14082 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")*

Hi,

Your problem is NOT the same. You're getting that notice on the back end products listing page.
Please edit that page and change the code on that line 203:
foreach($prices as $price){
to:
foreach(@$prices as $price){

and try again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 1
- Thank you received: 0
-
-

15 years 6 months ago [\#14960](#14960) by [ellemhach](/forum/user/2274-ellemhach "View ellemhach's Profile")  Replied by *[ellemhach](/forum/user/2274-ellemhach "View ellemhach's Profile")* on topic *[Re: Invalid Argument](/forum/3-bug-report/13922-invalid-argument#14960 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")*

Hi there,

Similar but different error here:

"Warning: Invalid argument supplied for foreach() in /home/jolidage/public_html/shop/components/com_hikashop/views/product/view.html.php on line 617"

&amp; shows on front end. I have the latest version (downloaded &amp; installed today) 1.4.9

Code at line 617 reads:

foreach($element-&gt;characteristics as $k =&gt; $characteristic){

Any help massively appreciated ![:)](/media/kunena/emoticons/3.png ":)")

-lisa

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 86359
- Thank you received: 14296
-
-

15 years 6 months ago [\#14968](#14968) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invalid Argument](/forum/3-bug-report/13922-invalid-argument#14968 "I am getting this error message -  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 508  Warning: Invalid argument supplied for foreach() in /home/content/84/6698584/html/components/com&#95;hikashop/views/product/view.html.php on line 558  You can view it here -")*

Please try to change that line by:
foreach(@$element-&gt;characteristics as $k =&gt; $characteristic){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzkyMi1pbnZhbGlkLWFyZ3VtZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.052 seconds

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