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

#   Fatal PHP Error in Checkout

##

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

Less More

- Posts: 11
- Thank you received: 1
-
-

9 years 8 months ago -  9 years 8 months ago [\#263835](#263835) by [vaki2@hikashop](/forum/user/45211-vaki2-hikashop "View vaki2@hikashop's Profile")  *[Fatal PHP Error in Checkout](/forum/27-checkout/889132-fatal-php-error-in-checkout#263835 "Edit: I accidentally posted this in the wrong subforum. I meant to have placed it in the Checkout forum  Hello,  I posted here before about a PHP error I was getting in hikashop when I was using RSVP pro that I was able to fix, but I am now receiving the same error again. This time, I know what the issue is. The issue is dealing with auto loading a coupon into the cart.  I have a coupon for Local Residency that gets applied automatically if your country address is where the event is hosted. The Checkout works 100% fine only if I choose that specific country. But if I choose any other country besides the one that I have set to auto load, the site will crashes with the same error I was getting before  Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /libraries/joomla/filter/input.php on line 809  Disabling auto load will fix this problem. I also tried making a coupon called Out of Country to be auto loaded when a user chooses any other country that is not the host country, but the issue still persists.  I also have tried making a discount instead, but for some reason, discounts do not seem to work. When I make a discount to be added on based on a country selection, it will show the discount next to the price of the item, for example, $100 - 15%, but it will not update the total price. Its appearance is working as it should, since if I pick any other country, it will not show the -15%, but choosing the correct country will make it show up.")* was created by *[vaki2@hikashop](/forum/user/45211-vaki2-hikashop "View vaki2@hikashop's Profile")*

Edit: I accidentally posted this in the wrong subforum. I meant to have placed it in the Checkout forum

Hello,

I posted here before about a PHP error I was getting in hikashop when I was using RSVP pro that I was able to fix, but I am now receiving the same error again. This time, I know what the issue is. The issue is dealing with auto loading a coupon into the cart.

I have a coupon for Local Residency that gets applied automatically if your country address is where the event is hosted. The Checkout works 100% fine only if I choose that specific country. But if I choose any other country besides the one that I have set to auto load, the site will crashes with the same error I was getting before

**Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /libraries/joomla/filter/input.php on line 809**

Disabling auto load will fix this problem. I also tried making a coupon called Out of Country to be auto loaded when a user chooses any other country that is not the host country, but the issue still persists.

I also have tried making a discount instead, but for some reason, discounts do not seem to work. When I make a discount to be added on based on a country selection, it will show the discount next to the price of the item, for example, $100 - 15%, but it will not update the total price. Its appearance is working as it should, since if I pick any other country, it will not show the -15%, but choosing the correct country will make it show up.

Last edit: 9 years 8 months ago by [vaki2@hikashop](/forum/user/45211-vaki2-hikashop "View vaki2@hikashop's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4OTEzMi1mYXRhbC1waHAtZXJyb3ItaW4tY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#263837](#263837) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Fatal PHP Error in Checkout](/forum/27-checkout/889132-fatal-php-error-in-checkout#263837 "Edit: I accidentally posted this in the wrong subforum. I meant to have placed it in the Checkout forum  Hello,  I posted here before about a PHP error I was getting in hikashop when I was using RSVP pro that I was able to fix, but I am now receiving the same error again. This time, I know what the issue is. The issue is dealing with auto loading a coupon into the cart.  I have a coupon for Local Residency that gets applied automatically if your country address is where the event is hosted. The Checkout works 100% fine only if I choose that specific country. But if I choose any other country besides the one that I have set to auto load, the site will crashes with the same error I was getting before  Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /libraries/joomla/filter/input.php on line 809  Disabling auto load will fix this problem. I also tried making a coupon called Out of Country to be auto loaded when a user chooses any other country that is not the host country, but the issue still persists.  I also have tried making a discount instead, but for some reason, discounts do not seem to work. When I make a discount to be added on based on a country selection, it will show the discount next to the price of the item, for example, $100 - 15%, but it will not update the total price. Its appearance is working as it should, since if I pick any other country, it will not show the -15%, but choosing the correct country will make it show up.")*

Hi,

It is hard to say if the problem is really related to HikaShop or not.
The error message is indicating a memory issue and maybe the fact that you have an auto-coupon is just one of the possible source for that memory but it does not indicate where the memory problem is.

I'm afraid that we can't do or fix anything knowing that in our side, we do not have such memory issue ; even if we have a coupon.
Now it could be related to a plugin or another extension. It is really hard to say without so few information.

Regards,

---

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

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

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