doutongxuan1614 2015-10-25 09:29
浏览 46

致命错误:在magento中的非对象上调用成员函数getMethodInstance()

I am integrating magento payumoney gateway.I am using payumoney extension available on payumoney website.But it's through this error

Fatal error: Call to a member function getMethodInstance() on a non-object in D:\xampp\htdocs\build\store\app\code\core\Mage\Payment\Model\Observer.php on line 46

on this url

http://localhost/build/store/index.php/payucheckout/shared/redirect/

for this I follow this https://magento.stackexchange.com/questions/31517/magento-fatal-error-call-to-a-member-function-getmethodinstance-on-a-non-obje

but can't understand what going on. my website observer code

$order = $observer->getEvent()->getOrder();

    if ($order->getPayment()->getMethodInstance()->getCode() != 'free') {
        return $this;
    } 

to remove this error i have update my magento from old version to new please help to find out.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题