magento - Quote not setting on payment session after a while -
i have problem in creating order programatically. working fine, since couple of days stopped on error:
'fatal error: call member function getstore() on non-object in /home/clubecaf/public_html/app/code/core/mage/sales/model/quote/payment.php on line 165 '
it locates at:
public function getmethodinstance() { $method = parent::getmethodinstance(); return $method->setstore($this->getquote()->getstore()); } located in mage_sales_model_quote_payment.
is there reason why magento stops correctly treat quote session quote_payment, after time payment quote tables have size or state?
debugging process , background :
the error indicates quote instance not correctly set.
but , debugging, saw after quote save own instance on magneto, on method aftersave of quote calls function called this->getpaymentscollection()->save() , sales_flat_quote_payment set quote database , payment session.
on database, field quote_id of sales_flat_quote_payment filled.
after , made secured local copy of store, , erased sales_flat_quote_payment content, correcting errors.
but since cannot erase old payment quotes, have more precise on definition of problem.
thanks in advance.
Comments
Post a Comment