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

#   Php error during checkout using AWCoupon

##

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

Less More

- Posts: 102
- Thank you received: 2
-
-

13 years 1 month ago [\#126539](#126539) by [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")  *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126539 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")* was created by *[miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")*

[ vaporandco.com/component/hikashop/checkout/step/step-1](https://vaporandco.com/component/hikashop/checkout/step/step-1)

I am using awCoupon and when checking out I get this error:

Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437

Joomla: Joomla! 3.1.5
HikaShop Business: 2.2.1
AwCoupon Version: Installed Version: 2.2.2

In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.

Thanks.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#126552](#126552) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126552 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

Hi,

The plugin "user points" has been fixed in HikaShop 2.2.2
You can update HikaShop (for the moment you have to download it manually but we will propose the automatic update soon).
You can also download HikaShop 2.2.2 and just update the "user points" plugins (one in "hikashop" and the other in "hikashoppayment").

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 102
- Thank you received: 2
-
-

13 years 1 month ago [\#126560](#126560) by [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")  Replied by *[miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126560 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

Thanks for the quick reply.

About Upgrade:

One thing i noticed during my last update of HikaShop Business is that on one client we don't have countries published but for tax purposes in FL we unpublished countries and created states and and counties. (As you probably know, Fl has different tax rates). Anyway, when we upgrade it messes that all up and re-publishes the countries. Is there a work around for that?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#126643](#126643) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126643 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

Hi,

I don't know exactly what you done and what was "mess up" so it will be difficult to tell you without more details.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 102
- Thank you received: 2
-
-

13 years 1 month ago -  13 years 1 month ago [\#126688](#126688) by [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")  Replied by *[miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126688 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

We replaced countries with US states and states are now FL counties (fl requires us to charge tax by county). When we do an upgrade it resets the country fields and all the countries are published again. We have to go in an unpublish all countries and reset up the whole thing up again.

Last edit: 13 years 1 month ago by [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#126748](#126748) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126748 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

Hi,

We do not touch to the database content during updates, except for re-creation.

The countries and states are recreated if there was delete. Otherwise, it does not touch the content.
It allows you to restore the countries and states if you made a manipulation error. Just removing all states/countries and HikaShop will restore them with the default configuration.

But if you just publish/unpublish them, HikaShop will not alter it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")

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

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

Less More

- Posts: 102
- Thank you received: 2
-
-

13 years 1 month ago [\#126785](#126785) by [miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")  Replied by *[miracleecho](/forum/user/18061-miracleecho "View miracleecho's Profile")* on topic *[Php error during checkout using AWCoupon](/forum/27-checkout/862580-php-error-during-checkout-using-awcoupon#126785 "  vaporandco.com/component/hikashop/checkout/step/step-1  I am using awCoupon and when checking out I get this error:  Warning: Invalid argument supplied for foreach() in /home/content/93/11223693/html/plugins/hikashop/userpoints/userpoints.php on line 437  Joomla: Joomla! 3.1.5 HikaShop Business: 2.2.1 AwCoupon Version: Installed Version: 2.2.2  In this scenario i was using a shipping coupon giving me free shipping and a gift certificate code that i am testing. Please not the user see's the error but the order process fine.  Thanks.")*

You know, now that you mention that when we original set things up we did delete the countries. When we upgraded last time it restored them. When we re-set things up i believe we just unpublished this time. Thanks for the clarification.

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

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