Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /home/bathfitt/public_html/lib/Zend/Db/Select.php on line 702 #79

Closed
Staunchire opened this Issue Jan 17, 2014 · 12 comments

Comments

Projects
None yet
4 participants

error
Hi,

I am getting an error, while user gets login if they are having more number of products in their cart.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /home/bathfitt/public_html/lib/Zend/Db/Select.php on line 702.

Owner

Vinai commented Jan 17, 2014

Surprising.... which version of the extension and of Magento are you using?

Hi Vinai,

Magento 1.7.0.2 version.

Owner

Vinai commented Jan 17, 2014

I'm not able to reproduce.
What is the size of your catalog? I don't think thats the problem though. How many products are in the cart?
To be honest, I have no idea. Can you get at a full stack trace of the error?

10 to 20 products are in cart. Some times its not showing any error and works fine, later i logged in its showing as Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/bathfitt/public_html/lib/Zend/Db/Statement/Pdo.php on line 290., later on different location.

Owner

Vinai commented Jan 17, 2014

Can you get and post a full stack trace of the issue?

error1
error3
error2

User1 having 8 products on their cart

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /home/bathfitt/public_html/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php on line 460.
Error2.png

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/bathfitt/public_html/lib/Zend/Db/Statement/Pdo.php on line 290.
Error3.png

User2 with 30 products on their cart getting these issue:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /home/bathfitt/public_html/lib/Zend/Db/Select.php on line 702.

Error1.png

Above are the list of issue occurring on website, while user gets login if they have more number products on their cart.

Website have 2500 products and hosting is shared hosting.

Owner

Vinai commented Jan 17, 2014

Thanks for the info. To be honest, I don't think this is related to any of my extensions.
Do you have any other customizations in your store?

Owner

Vinai commented Feb 10, 2014

Please let me know if there is any additional information regarding this issue or an answer to my question.

HI,
I had to deal with this error : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 84 bytes) in /lib/Zend/Db/Statement/Pdo.php on line 290

I was running a script when I get the error and my problem was that my script was exceeded the memory_limit which was set to 128M. My solution was to add this line @ini_set('memory_limit', '256M'); at the beginning of the script . Maybe you can try to increase the memory_limit in php.ini

Owner

Vinai commented Jun 27, 2014

Closing the issue since it has been months since the last reply from the original poster and the issue can't be recreated.

Vinai closed this Jun 27, 2014

Hi
login time this error show "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65552 bytes) in /home/purec674/public_html/lib/Zend/Locale/Data.php on line 323". please help me.

Owner

Vinai commented Oct 25, 2014

Please read this thread. There is nothing I can do to help you. This extension actually makes Magento use less memory since it reduces the amount of entities loaded. It must be some issue with another extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment