简体   繁体   English

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

[英]Magento : Fatal error: Call to a member function getMethodInstance() on a non-object

Login Admin > sales > orders and I click view some order show detail but some order show error登录管理 > 销售 > 订单,然后单击查看某些订单显示详细信息但某些订单显示错误

Fatal error: Call to a member function getMethodInstance() on a non-object in /home/easter13/public_html/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php on line 96致命错误:在第 96 行的 /home/easter13/public_html/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php 中的非对象上调用成员函数 getMethodInstance()

help me please, And thank you.请帮助我,谢谢。

在此处输入图片说明

This is happning because there is a problem with your mail configuration.这是因为您的邮件配置存在问题。 I have 2 suggestions:我有2个建议:

1. Open app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php at line number 92 replace your code with below code: 1. 在第 92 行打开app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php将您的代码替换为以下代码:

if ($this->_isAllowedAction('emails') && !$order->isCanceled()) {
    $confirmationMessage = $coreHelper->jsQuoteEscape(
        Mage::helper('sales')->__('Are you sure you want to send order email to customer?')
    );
    $this->addButton('send_notification', array(
        'label'     => Mage::helper('sales')->__('Send Email'),
        'onclick'   => "confirmSetLocation('{$confirmationMessage}', '{$this->getEmailUrl()}')",
    ));
}

Then clear your cache, refresh the page and see if your error is gone.然后清除缓存,刷新页面并查看错误是否消失。

2. Open app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php at line number 92, uncomment this code and then clear your cache, refresh the page and check whether your error is gone. 2.打开app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php 92行,取消注释,然后清除缓存,刷新页面,检查错误是否消失。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Magento致命错误-在非对象上调用成员函数getId() - Magento Fatal Error - Call to a member function getId() on a non-object Magento致命错误:在非对象上调用成员函数save() - Magento Fatal error: Call to a member function save() on a non-object 致命错误:在Magento中的非对象上调用成员函数getIdFieldName() - Fatal error: Call to a member function getIdFieldName() on a non-object in Magento 致命错误:在 magento 中的非对象上调用成员函数 getLevel() - Fatal error: Call to a member function getLevel() on a non-object in magento Magento:致命错误:在非对象上调用成员函数 load() - Magento: Fatal error: Call to a member function load() on a non-object 致命错误:在magento中的非对象上调用成员函数getEmail() - Fatal error: Call to a member function getEmail() on a non-object in magento Magento致命错误:在非对象上调用成员函数addFieldToFilter() - Magento Fatal error: Call to a member function addFieldToFilter() on a non-object Magento致命错误:在非对象上调用成员函数getSku() - Magento Fatal Error: Call to member function getSku() on a non-object Magento:致命错误:在非对象上调用成员函数getItems() - Magento: Fatal error: Call to a member function getItems() on a non-object Magento遇到此错误:致命错误:在非对象上调用成员函数getAttributeText() - Magento getting this error: Fatal error: Call to a member function getAttributeText() on a non-object
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM