Magento Forum

   
Page 2 of 3
STORE CRASHES AFTER CURRENCY CHANGE [URGENT]
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

Have you followed all of the suggestions in this thread so far?

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 

Yes I think so..
I turned off all plugins and problem didn\’t go away.
After that I downloaded my entire site and did a search in all the code for Mage::getModel(\’checkout/cart\’)->getQuote() with no result.

My error log says:

[Thu Feb 28 14:44:09 2013] [error] [client 62.132.237.98] PHP Fatal error:  Allowed memory size of 155189248 bytes exhausted (tried to allocate 64 bytes) in /var/www/html/lib/Varien/Simplexml/Element.php on line 195

It only happens when I try to switch currency with an item in my shopping cart.

Regards,

Camiel

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

Can you list:

Magento version
Modules installed
Current Memory Limit
Current max execution time

If you are able to see what queries are being run, that would be a HUGE help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 

Hi elfling,

Magento version: 1.7.0.2
Modules installed, based on System -> advanced:
- ALL DEFAULT MAGE MODULES
- EM_DeleteOrder
- Find_Feed
- Fooman_Common
- Fooman_EmailAttachments
- Fooman_PdfCustomiser
- Geissweb_Euvatgrouper
- Magneto_Debug
- Netzarbeiter_GroupsCatalog2
- Phoenix_Moneybookers
- Total_Buckaroo2012
- Total_Buckaroo2012Betaalgarant
- Total_Buckaroo2012CashTicketPaysafeCard
- Total_Buckaroo2012CreditCard
- Total_Buckaroo2012Giftcard
- Total_Buckaroo2012Giropay
- Total_Buckaroo2012Machtiging
- Total_Buckaroo2012Onlinegiro
- Total_Buckaroo2012Overschrijving
- Total_Buckaroo2012PayPerEmail
- Total_Buckaroo2012Paypal
- Total_Buckaroo2012iDeal

Current Memory Limit: 148 M
Current max execution time: 120

If you are able to see what queries are being run, that would be a HUGE help:
I don\’t have SSH access to the server, any other way to see this?

Thanks for your help!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Creepin
Jr. Member
 
Total Posts:  28
Joined:  2012-03-28
 

Hey!

First try to disable all modules one by one. But don’t disable it in admin but do it with renaming the module.xml to module.xml.bla (etc/modules)

esspecially payment methods could cause the error.

if you do not find a module, then try to log all sql queries:

change in lib\Varien\Db\Adapter\Pdo\

protected $_debug =true;
protected $_logAllQueries = true;

then cause the error and then look at var/debug/pdo_mysql.log

there you might find a module name which is querying again and again.

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 

Thanks for your reply.

Disabling the modules didn’t do the trick…

I created the mysql log file and caused the error, it creates a log file with about 52000 lines…
Can I PM you the log file? I’m can’t see what is causing the error....

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Creepin
Jr. Member
 
Total Posts:  28
Joined:  2012-03-28
 

yes pm me

 
Magento Community Magento Community
Magento Community
Magento Community
 
Creepin
Jr. Member
 
Total Posts:  28
Joined:  2012-03-28
 

log file was like mine, repeating again and again. please make a text search again for

getModel(’checkout/cart’)->getQuote()

or

getModel("checkout/cart")->getQuote()

or some similar expressions. i think that has to be somewhere.
I don’t know if the backslahes in your post where added by the forum here, if not leave them out when searching.
complete text search can be done with total commander for example, don’t know what you are using.

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 

Thanks for your reply.
Searched the entire code again but simply cant find it…

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

Can you do a search for just simply either

getQuote

or

checkout/cart

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 
elfling - 11 March 2013 11:34 AM

Can you do a search for just simply either

getQuote

or

checkout/cart

Did that, it gives me a lot of results.
But none of them looks like getModel("checkout/cart")->getQuote() ....

 
Magento Community Magento Community
Magento Community
Magento Community
 
omnivision
Jr. Member
 
Total Posts:  9
Joined:  2011-06-28
 

nobody any ideas...?

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

Unfortunately it maybe something completely new that hasn’t been stumbled upon yet. I can only give answers as to what I’ve experienced so far.

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

Ok…

$quote $observer->getQuote();

class Netzarbeiter_GroupsCatalog2_Model_Observer line 206

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  899
Joined:  2008-10-21
 

In config.xml of that module.

Comment out or remove

<sales_quote_load_after>
                <
observers>
                    <
netzarbeiter_groupscatalog2>
                        <
type>singleton</type>
                        <
model>netzarbeiter_groupscatalog2/observer</model>
                        <
method>salesQuoteLoadAfter</method>
                    </
netzarbeiter_groupscatalog2>
                </
observers>
            </
sales_quote_load_after>

Refresh cache and retest.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 3