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

#   Invalid argument supplied for foreach()

##

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

Less More

- Posts: 24
- Thank you received: 1
-
-

13 years 4 months ago [\#113845](#113845) by [electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")  *[Invalid argument supplied for foreach()](/forum/3-bug-report/85313-invalid-argument-supplied-for-foreach#113845 "Hi  Searched but didn't find my exact error.  Getting this error on checkout  Invalid argument supplied for foreach() in /home/cottagem/public&#95;html/modules/mod&#95;hikashop&#95;cart/mod&#95;hikashop&#95;cart.php on line 28  Line 28 says this:  Please advise")* was created by *[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")*

Hi

Searched but didn't find my exact error.

Getting this error on checkout

Invalid argument supplied for foreach() in /home/cottagem/public_html/modules/mod_hikashop_cart/mod_hikashop_cart.php on line 28

Line 28 says this:
Code:

foreach($module_options as $key =&gt; $option){ if($key !='moduleclass_sfx'){ $params-&gt;set($key,$option); } }

Please advise

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago [\#113891](#113891) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Invalid argument supplied for foreach()](/forum/3-bug-report/85313-invalid-argument-supplied-for-foreach#113891 "Hi  Searched but didn't find my exact error.  Getting this error on checkout  Invalid argument supplied for foreach() in /home/cottagem/public&#95;html/modules/mod&#95;hikashop&#95;cart/mod&#95;hikashop&#95;cart.php on line 28  Line 28 says this:  Please advise")*

Hi,

Did you edited some Hikashop system files ? If not can you just update your Hikashop to the last version ?

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

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

Less More

- Posts: 24
- Thank you received: 1
-
-

13 years 4 months ago [\#114016](#114016) by [electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")  Replied by *[electronsi00](/forum/user/22839-electronsi00 "View electronsi00's Profile")* on topic *[Invalid argument supplied for foreach()](/forum/3-bug-report/85313-invalid-argument-supplied-for-foreach#114016 "Hi  Searched but didn't find my exact error.  Getting this error on checkout  Invalid argument supplied for foreach() in /home/cottagem/public&#95;html/modules/mod&#95;hikashop&#95;cart/mod&#95;hikashop&#95;cart.php on line 28  Line 28 says this:  Please advise")*

Thank you that fixed it ![:)](/media/kunena/emoticons/3.png ":)")

If i make changes to the language file, in the future, is it possible to back that file up and reload it after an update?

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#114063](#114063) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Invalid argument supplied for foreach()](/forum/3-bug-report/85313-invalid-argument-supplied-for-foreach#114063 "Hi  Searched but didn't find my exact error.  Getting this error on checkout  Invalid argument supplied for foreach() in /home/cottagem/public&#95;html/modules/mod&#95;hikashop&#95;cart/mod&#95;hikashop&#95;cart.php on line 28  Line 28 says this:  Please advise")*

Hi there,

Updating will not affect your language file if you edited it.
It should keep your customizations ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NTMxMy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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.047 seconds

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