2014-12-09 1 views
1

장바구니에 제품을 추가 할 때까지 내 통화 전환기가 정상적으로 작동합니다. 내가 통화를 웹 사이트의 충돌을 변경하고 나에게 메모리의 치명적인 오류를 제공하면 내 장바구니에 제품을 추가 한 후에 : 당신이 이벤트 sales_quote_collect_totals_before 또는 sales_quote_collect_totals_after에 대한이 관찰자 방법에 관찰자가있을 때Magento 통화 전환기 관련 문제

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 523800 bytes) in /home/ubuntu/domains/magento/app/code/core/Mage/Core/Model/Config.php on line 1328 

답변

3

이 오류가 발생 시킬수 있습니다 당신은 예를 들어 Mage::getSingleton('checkout/session')->getQuote()에 의해 견적 객체를 얻으려고합니다. 이에 대한 해결 방법은 다음과 같이 견적을 얻을 수 있습니다 :

공공 기능 observerMethod (Varien_Event_Observer $ 관찰자)
{$ 인용 = $ observer-> getEvent() -> getQuote의(); }

+0

네, 고마워요. 내 문제가 해결되었습니다. –