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

#   Administrator: Customer + Carts Out of Memory

##

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

Less More

- Posts: 116
- Thank you received: 7
-

10 years 9 months ago [\#230909](#230909) by [stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")  *[Administrator: Customer + Carts Out of Memory](/forum/33-customers/882518-administrator-customer-carts-out-of-memory#230909 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6. -- Browser(s) name and version -- : FF 44.02, Chrome, Safari -- Error-message(debug-mod must be tuned on) -- : Most of the time its something like:  Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/actnow/public&#95;html/administrator/components/com&#95;hikashop/classes/currency.php on line 1295  As we play with the memory limit in PHP, we can sometimes go as far as getting this message:  Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65552 bytes) in /home/actnow/public&#95;html/libraries/joomla/filter/input.php on line 980  When trying to list customer carts on the back end we get Allowed memory size of X exhausted...normally on /administrator/components/com&#95;hikashop/classes/currency.php on line 1295, but the exact file and location can vary.  We have increased the php memory&#95;limit from 128M to 512M to no avail. This is the only function that we have this happen, and I can't figure out when it started.  I changed the cart retention settings to reduce the size of the table, and I only see 43 records in the &#95;hikashop&#95;cart table.  I'm assuming something is corrupt in the data and don't know how to fix it. So I purged the data in both the &#95;hikashop&#95;cart and &#95;hikashop&#95;cart&#95;product tables.  Is there any other location I need to clean things up with and is this the right thing to do? Once I purged the contents of those two tables, the function works properly with only 128M in PHP memory&#95;limit as it had before.  Thanks,  Kevin")* was created by *[stratacorps](/forum/user/33546-stratacorps "View stratacorps's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.
-- Browser(s) name and version -- : FF 44.02, Chrome, Safari
-- Error-message(debug-mod must be tuned on) -- : Most of the time its something like:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/actnow/public_html/administrator/components/com_hikashop/classes/currency.php on line 1295

As we play with the memory limit in PHP, we can sometimes go as far as getting this message:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65552 bytes) in /home/actnow/public_html/libraries/joomla/filter/input.php on line 980

When trying to list customer carts on the back end we get Allowed memory size of X exhausted...normally on /administrator/components/com_hikashop/classes/currency.php on line 1295, but the exact file and location can vary.

We have increased the php memory_limit from 128M to 512M to no avail. This is the only function that we have this happen, and I can't figure out when it started.

I changed the cart retention settings to reduce the size of the table, and I only see 43 records in the _hikashop_cart table.

I'm assuming something is corrupt in the data and don't know how to fix it. So I purged the data in both the _hikashop_cart and _hikashop_cart_product tables.

Is there any other location I need to clean things up with and is this the right thing to do? Once I purged the contents of those two tables, the function works properly with only 128M in PHP memory_limit as it had before.

Thanks,

Kevin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84ODI1MTgtYWRtaW5pc3RyYXRvci1jdXN0b21lci1jYXJ0cy1vdXQtb2YtbWVtb3J5P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

10 years 9 months ago [\#230922](#230922) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Administrator: Customer + Carts Out of Memory](/forum/33-customers/882518-administrator-customer-carts-out-of-memory#230922 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6. -- Browser(s) name and version -- : FF 44.02, Chrome, Safari -- Error-message(debug-mod must be tuned on) -- : Most of the time its something like:  Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/actnow/public&#95;html/administrator/components/com&#95;hikashop/classes/currency.php on line 1295  As we play with the memory limit in PHP, we can sometimes go as far as getting this message:  Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65552 bytes) in /home/actnow/public&#95;html/libraries/joomla/filter/input.php on line 980  When trying to list customer carts on the back end we get Allowed memory size of X exhausted...normally on /administrator/components/com&#95;hikashop/classes/currency.php on line 1295, but the exact file and location can vary.  We have increased the php memory&#95;limit from 128M to 512M to no avail. This is the only function that we have this happen, and I can't figure out when it started.  I changed the cart retention settings to reduce the size of the table, and I only see 43 records in the &#95;hikashop&#95;cart table.  I'm assuming something is corrupt in the data and don't know how to fix it. So I purged the data in both the &#95;hikashop&#95;cart and &#95;hikashop&#95;cart&#95;product tables.  Is there any other location I need to clean things up with and is this the right thing to do? Once I purged the contents of those two tables, the function works properly with only 128M in PHP memory&#95;limit as it had before.  Thanks,  Kevin")*

Hi,

It's not a problem of the amount of carts or a bug.
It's that that in order to produce accurate results for the total price, etc, the whole cart is loaded and processed for each cart displayed on the listing. That's a lot of data to process in memory.
Normally, with 20 carts, it shouldn't be a problem, but if you try to display more carts, or if the carts have a lot of products, it can rapidely increase the need for processing on the carts listing page.

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

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