php - New Quote id generate on every time of getQuote() in magento -
when try cart items using getquote() method like
mage::getmodel('checkout/cart')->getquote();
it generates new quote id on every time of line call. sales_flat_quote table growing rapidly & make looping! , show below error! plz check screenshot!
fatal error: maximum function nesting level of '6000' reached, aborting!
this issue occurs times , customers only. if check in system, showing fine! rectify automatically after times. can't understand why happening.
any advice or suggestions appreciated!
tl;dr: disabled xdebug , fine.
this error message comes xdebug extension. php not have function nesting limit. change the setting in php.ini:
xdebug.max_nesting_level = 10000
or in php code:
ini_set('xdebug.max_nesting_level', 10000);
as if need change (i.e.: if there's alternative solution recursive function), can't tell without code.
Comments
Post a Comment