quadra-informatique / Atos-Magento

ATOS/Sips Community Payment Module for Magento 1.x (1.7+)
http://www.magentocommerce.com/magento-connect/atos-sips-extension-1.html
9 stars 9 forks source link

Cancel payment issue in PaymentController #7

Closed nicolas-aucourt closed 10 years ago

nicolas-aucourt commented 10 years ago

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 !

mpasquin commented 10 years ago

Hello,

I think this error is bound to the other issue you created : https://github.com/quadra-informatique/Magento-Module-Atos/issues/8

Regards.