0

I am having a strange problem . If i update catalog price rule then on front end i can't get logged in . Page keeps on loading and after some time it shows 500 error . If i update that customer account from backend just editing and saving , it enables me to log in from front . Any idea what am i doing wrong ?

I have followed the code to see which lines are putting it in endless loop. I found that following lines in Mage/Sales/Model/Quote in _afterLoad function are causing this loop.

if (1 == $this->getData('trigger_recollect')) {

           $this->collectTotals()->save();

        }

If I comment out $this->collectTotals()->save(); it loads fine.

After reading more on forums it says that when we update catalog rules in admin, then magento set this trigger to 1 so that it calculate totals again on front end and that puts in loop as it gets too long. Like suggested on these

http://www.techytalk.info/catalog-price-rules-not-applied-creating-order-magento-admin/

and here

https://github.com/magespecialist/MSP_CashOnDelivery/issues/6

Can you suggest what can be the proper solution, commenting this line will have other effects as well I would think, although it currently seems to work fine. Thanks for looking into this

7
  • In case of 500 error, please check your Magento & Server log files. It will help you to identify real problem. Commented Feb 18, 2016 at 11:39
  • this is what i am getting on redis_session.log file . 'EMERG (0): sip3-156.nexcess.net|18311: Unable to connect to Redis; falling back to MySQL handler' .
    – Seefan
    Commented Feb 18, 2016 at 11:41
  • I haven't experienced with redis, but I'm sure its related to that. Try to disabled Redis and see its work or not Commented Feb 18, 2016 at 11:46
  • and on exception.log file : ..../app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('loginPost')
    – Seefan
    Commented Feb 18, 2016 at 11:49
  • Can you please add exception stack trace of exception.log file in your question Commented Feb 18, 2016 at 11:51

1 Answer 1

0

You have a redis session management issue.

Double check your local.xml, you probably have some mistake.

Try also disabling redis sessions and falling back to MySQL to see if it fix.

5
  • i disabled redis but still same issue .
    – Seefan
    Commented Feb 18, 2016 at 11:56
  • So they are not related... any custom module installed that can interact with customer model? Commented Feb 18, 2016 at 11:58
  • I have followed the code to see which lines are putting it in endless loop. I found that following lines in Mage/Sales/Model/Quote in _afterLoad function are causing this loop. if (1 == $this->getData('trigger_recollect')) { $this->collectTotals()->save(); } If I comment out $this->collectTotals()->save(); it loads fine.
    – Seefan
    Commented Feb 24, 2016 at 6:55
  • After reading more on forums it says that when we update catalog rules in admin, then magento set this trigger to 1 so that it calculate totals again on front end and that puts in loop as it gets too long. Like suggested on these techytalk.info/… and here github.com/magespecialist/MSP_CashOnDelivery/issues/6 Can you suggest what can be the proper solution, commenting this line will have other effects as well I would think, although it currently seems to work fine. Thanks for looking into this
    – Seefan
    Commented Feb 24, 2016 at 6:58
  • You could have the totals not correctly updated after some cart change (insert/remove) products. Make sure it is correctly working. Commented Feb 24, 2016 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.