Fatal Error: Alllowed Memory Size Exhausted

  • Posts: 19
  • Thank you received: 0
9 years 3 weeks ago #249083

-- url of the page with the problem -- : www.mcgheesminiatures.com/administrator/...ikashop&ctrl=product
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.24
-- Browser(s) name and version -- : Mozilla/5.0
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 245384 bytes) in /home2/mcgheesm/public_html/plugins/system/debug/debug.php on line 1213

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 34147697 bytes) in /home2/mcgheesm/public_html/plugins/system/debug/debug.php on line 1119

I tried to do a mass action delete all products in my HikaShop store. When I attempted the mass action, I got the error message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 245384 bytes) in /home2/mcgheesm/public_html/plugins/system/debug/debug.php on line 1213

When try to go to "My Products" I now get the following message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 34147697 bytes) in /home2/mcgheesm/public_html/plugins/system/debug/debug.php on line 1119

I talked with my host, BluHost. They told me that a plug-in was using too much memory. there is nothing they can do. I should contact the plug-in.

I did go to Joomla! settings and deleted the cashed files. (The only file was a folder called thumbs. I deleted the contents anyway.)

I am guessing that I have too many items to delete in a mass action. So I guess that I can delete all products in different catagories to avoid getting this error again. But in the meantime, how do I take care of the exhausted memory?

Please Log in or Create an account to join the conversation.

  • Posts: 84424
  • Thank you received: 13720
  • MODERATOR
9 years 3 weeks ago #249089

Hi,

The error message says that it's trying to allocate in one place 34MB of memory. That's a lot of memory. So I suppose that it must be trying to generate a thumbnail out of a really big image (in size), and on the listing, it has to do that for the 20 products on the page and thus it crashes at that point. Try renaming the folder images/com_hikashop/upload via FTP to remove all the products images. If it comes from that, the listing should them display fine.
With the mass action, you can select the number of elements to delete each time you click on the "process" button thanks to the "limitations" area. So if it crashes when you process the mass action, you can try reducing the number of elements.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
9 years 2 weeks ago #249509

I tried renaming the file /public_html/media/com_hikashop/upload by putting an "s" on the end of upload. This made no difference in the problem. My site was working fine until I tried to do a mass action and delete all of the products in the store. that is when the error messages mentioned above began

There is one other thing that could be causing a problem. I get an error message like the following when I'm on both the front end, and the back end.

A script on this page may be busy, or it may stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http//www.mcgheesminiatures.com/media/jui/js/jquery.js:298


I do not know if this has anything to do with the memory allocation error I am getting or not.

Currently I am not able to edit or even view my products from the back end. Please help.... I am lost!

Please Log in or Create an account to join the conversation.

  • Posts: 26284
  • Thank you received: 4046
  • MODERATOR
9 years 2 weeks ago #249529

Hi,

The mass-action can consume a lot of memory due to the fact it has to load the data to be able to analyze it.
In your case, I'll recommend you to see if you can use a SQL query to update your products in PHPMyAdmin.

Otherwise, you should set in your mass-action a strict limitation (by default it will work with 500 entries) ; which mean that one entry is requiring 66Kb of memory.
By working on 50 entries it will just require 3Mb of memory and if your action is right set, you will be able to re-execute the action and not re-process the item you have already modified.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
9 years 1 week ago #250364

I'm afraid I do not know how to set up a SQL query tp update the products.

At this point it does not matter what I do to the mass actions, or any limits I changed the limit to 50. All that occurs is I get an endless loop of;

Warning: Unresponsive Script.

A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: www.mcgheesminiatures.com/media/jui/js/jquery.js 577

When I hit continue, it shortly pops up the message again only with a different line number. I never get a confirmation that the action has been completed.

But a bigger concern is that when I try to click on "Products" in the HikaShop work space, I get the a white page with the following error message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 34147697 bytes) in /home2/mcgheesm/public_html/plugins/system/debug/debug.php on line 1119
So I am not able to even tell if I have products listed on the site.

Somehow I need to clear whatever is in the memory. I have tried to clear my cashe from the Joomla backend. This did not solve my problem, but did cause all of the thumbnails to disssapear from my site.

The same jui script error occurs on the front end of my website when going into the HikaShop section.

None of these errors ocured until I attempted a Mass Action - Delete all products. However, from the start, the mass action did have a limitation of 500 records

I am true clueless about how to resolve these issues. . I will be VERY grateful for any help I can get.
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26284
  • Thank you received: 4046
  • MODERATOR
9 years 1 week ago #250406

Hi,

Using the Joomla debugger is not a good idea when you have some memory limit issues ; because it is using a LOT of memory.
Just in your example, the Joomla debugger asked for 34Mb of memory.. That's 26.5% of the memory you are allowing.
Regarding the allocated memory you have, I'm wondering if you do not have other plugin which could be activate and use a large amount of ressources.

Try to use the mass action without the Joomla debugger. It would be a good start to consume less memory.
And if you can take a look at the memory consumption on generic pages, it would give you an idea of the system plugins memory usage.

About the "unresponsive script" ; it would be more than hard to know what is the source of the issue like that.
Because we know that the loop might be in the jquery file but we don't know what is the "call stack" ; so from where it is coming from.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: BarbMc1

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum