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

#   Fatal error: Allowed memory size

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago [\#365886](#365886) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365886 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 4.4.11

Hi!

I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file.
The error message says

> Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /home/php8/public\_html/billiri.gr/administrator/components/com\_hikashop/classes/category.php on line 915
>
> Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
>
> Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
>
> Warning: PHP Request Shutdown: Cannot call session save handler in a recursive manner in Unknown on line 0

I changed the memory limit i tried everything there but nothing helped.

Thank you

- [ ![Fatal-error.png](/forum/attachment/60284) ](/forum/attachment/60284 "Fatal-error.png") [ ](/forum/attachment/60284?download=1 "Fatal-error.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwOTE5OS1mYXRhbC1lcnJvci1hbGxvd2VkLW1lbW9yeS1zaXplP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

1 year 8 months ago [\#365888](#365888) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365888 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hi,

Extract the install package on your local computer. Upload the extracted content in the tmp folder of your joomla via FTP. Then, in the Joomla installer, use the "install from folder" tab, and specify the path of the tmp folder and run the installation process.
Since Joomla won't have to extract the zip, it will circumvent the limitation you have and go straight to the update process.

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

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago -  1 year 8 months ago [\#365909](#365909) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365909 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hi!

I tried that but i does the same thing, actually it crashes even faster with the tmp folder upload.
It also crashes if i rebuild Hikashop categories.

Thank you

Last edit: 1 year 8 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile").

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago [\#365923](#365923) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365923 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

I also remarked that rebuild categories gives

Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 262144 bytes) in /home/billiri/public_html/administrator/components/com_hikashop/classes/category.php on line 883

Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwOTE5OS1mYXRhbC1lcnJvci1hbGxvd2VkLW1lbW9yeS1zaXplP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

1 year 8 months ago -  1 year 8 months ago [\#365915](#365915) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365915 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hi,

I think that there is a problem with your categories in your database.
You must have a loop something where a child category is a parent of one of its parent categories.

You can try to add the code: Code:

if($depth &gt; 50) return array($depth,$left);

after the line: Code:

function rebuildTree($element,$depth,$left){

in the file administrator/components/com_hikashop/classes/category.php
That will avoid the infinite loop, and thus should not produce the error anymore if you click on the "rebuild" button of the categories listing.
Then, we can include the patch on our end too so that you can install the update without getting the error.
However, it still means that you have a problem with the data of your categories in the database. Ideally, you should review the child / parent structure of your categories to remove that infinite loop.

Last edit: 1 year 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago [\#365936](#365936) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365936 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Thank you Nicolas,
it didn t wotk for my case.
I still get
**Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 262144 bytes) in /home/billiri/public\_html/administrator/components/com\_hikashop/classes/category.php on line 883

Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0**

after rebuild.

How can I clean the child / parent structure?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwOTE5OS1mYXRhbC1lcnJvci1hbGxvd2VkLW1lbW9yeS1zaXplP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

1 year 8 months ago [\#365938](#365938) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#365938 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hi,

Open the hikashop_category table via your PHPMyAdmin. There, check the category_parent_id to make sure that each category is correctly linked to its rightful parent, and make sure there is no loop with a category having one of its children category's id (direct or indirect) in its category_parent_id.
Once you find the issue and correct the category_parent_id, click on "rebuild" and you won't have the problem.
Then, the update will work properly too.

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

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago [\#366019](#366019) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#366019 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hello Nicola,
I ve been trying to find that loop. There are a few categories. Can you take a look too? I think there is no loop.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwOTE5OS1mYXRhbC1lcnJvci1hbGxvd2VkLW1lbW9yeS1zaXplP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

1 year 8 months ago [\#366024](#366024) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#366024 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hi,

I also didn't find any issue with that CSV. I also imported it on my end, and run a "rebuild" on the data in it and it worked just fine with the latest version of HikaShop.
What you can do is this:
- make a copy of the hikashop_category table
- empty the hikashop_category table in your phpmyadmin
- run the install process for the latest version of HikaShop
- restore the copy of the table in phpmyadmin
- run the "database check" process of the HikaShop configuration and then the "rebuild" process of the categories listing

Hopefully, all of this will work.
Otherwise, it probably means that in your PHPMyAdmin, you're not looking at the same database as the one used on your website.

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 8 months ago [\#366026](#366026) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Fatal error: Allowed memory size](/forum/25-install-update/909199-fatal-error-allowed-memory-size#366026 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 4.4.11  Hi!  I'm trying to update Hikashop but the uploading keeps crashing, this happens only when uploading Hikashop zip file. The error message says  I changed the memory limit i tried everything there but nothing helped.  Thank you")*

Hello Nicola,
that did the job for updating. But after reimporting the categories I have the sam issue. It s very strange

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

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