Fatal Error on Magento Order Cancellation from customer My Account
I am getting an error on my magento 1.9 while canceling the order from customer my account. I am using to commercebees extension to extend the cancel option at customer my account section
Extension URL : https://www.commercebees.com/order-cancellation-module-make-it-easy-for-your-customers/
Fatal error: Call to a member function getMethodInstance() on boolean in /public_html/app/code/core/Mage/Payment/Model/Observer.php on line 46
The error is in the line of app/code/core/Mage/Payment/Model/Observer.php:
if ($order->getPayment()->getMethodInstance()->getCode() != 'free') {
That means $order->getPayment()
returns false.
You may try to verify:
<active>false</active>
If the error takes place because of commercebees extension you may apply for help to their support team.
链接地址: http://www.djcxy.com/p/65194.html