Magento Deadly Loop
October 16, 2011 § 6 Comments
In Magento, you may see this
Fatal error: Allowedmemory size of 33554432 bytes exhausted (tried to allocate 363 bytes) in....
So it means that you are in a loop, or not enough memory to run the magento.
In my case, I was customizing Magento in a great extend , such as product price calculation and shopping process. Everything is going fine when the currency stays the same, but if you switch currency you will get into a dead loop.
When touching price calculation , you always come across Quote Item Abstract class. However, I oversaw the fact that the class already get the method to get the quote, which I instead use
So it ends up looping over and over again, taking me using log function to track where it is.
Question is therefore raised, why would the Mage::getModel(‘core/session’)->getQuote() will only looping when switching currency? Need to investigate.