- Posts: 1184
- Thank you received: 13
Fatal error: Allowed memory size
-- 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
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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:
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.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
that did the job for updating. But after reimporting the categories I have the sam issue. It s very strange
Please Log in or Create an account to join the conversation.