The following method of the PaymentController.php controller failed when I cancel a payment.
/*
* When has error in treatment
/
public function failureAction() {
$this->loadLayout();
$this->getLayout()->getBlock('atos_failure')->setTitle($this->getAtosSession()->getRedirectTitle());
$this->getLayout()->getBlock('atos_failure')->setMessage($this->getAtosSession()->getRedirectMessage());
$this->getAtosSession()->unsetAll();
$this->renderLayout();
}
I finally get this error message:
Fatal error: Call to a member function setTitle() on a non-object in /home/.../.../app/code/community/Quadra/Atos/controllers/PaymentController.php on line 279
I tried to find out where were blocks called "atos_failure" but I did not understand where they could be found.
The following method of the PaymentController.php controller failed when I cancel a payment.
/* * When has error in treatment / public function failureAction() { $this->loadLayout(); $this->getLayout()->getBlock('atos_failure')->setTitle($this->getAtosSession()->getRedirectTitle()); $this->getLayout()->getBlock('atos_failure')->setMessage($this->getAtosSession()->getRedirectMessage()); $this->getAtosSession()->unsetAll(); $this->renderLayout(); }
I finally get this error message: Fatal error: Call to a member function setTitle() on a non-object in /home/.../.../app/code/community/Quadra/Atos/controllers/PaymentController.php on line 279
I tried to find out where were blocks called "atos_failure" but I did not understand where they could be found.
Thanks a lot for your help !