cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Magento 1.9.2.4 and Nginx 1.10.1

Problem with Magento 1.9.2.4 and Nginx 1.10.1

Hi, 

 
I configured Magento 1.9.2.4 with Nginx 1.10.1
Everything works except:
 

I have an error message when I save a product.

 

Fatal error: Call to undefined method Mage_Sales_Model_Resource_Quote::markQuotesRecollectByAffectedProduct() in /var/www/html/app/code/core/Mage/Sales/Model/Observer.php on line 135

 

This seems to come from the file /app/code/local/Mage/Sales/Model/Resource/Quote.php

 

I need to change what?

Should we delete the file /app/code/local/Mage/Sales/Model/Resource/Quote.php?

Or should we change it?

 

Thank you in advance for help.

 

Nicolas

3 REPLIES

Re: Problem with Magento 1.9.2.4 and Nginx 1.10.1

why local file was created?

------------
MagenX - Magento and Server optimization

Re: Problem with Magento 1.9.2.4 and Nginx 1.10.1

I do not know at all.

Re: Problem with Magento 1.9.2.4 and Nginx 1.10.1


I need to change what?

Should we delete the file /app/code/local/Mage/Sales/Model/Resource/Quote.php?

Or should we change it?

 


It depends why the override file is there. Generally it's a vey bad approach to make changes by overriding files using local code pool and only marginally better than changing core files directly (which is strictly verboten; Ben Marks will come and eat your children alive when you do that). I only use it for proof of concept quick hacks, never to be used anywhere near live environments. I'm pretty sure the problems started to appear when your system was upgraded, because the override files are from older Magento version(s) and not compatible with new one. I'd start process by removing app/code/local/Mage files (back them up somewhere in case you need them later) and see if your system works after that.

Tanel Raja