Magento - 管理员查看订单错误

时间:2011-11-14 15:41:30

标签: magento

在点击管理部分查看订单时,我们收到以下错误:

处理您的请求时出错

Invalid method Mage_Adminhtml_Block_Sales_Order_View_Tab_History::isCustomerNotificationNotApplicable(Array
(
    [0] => Array
        (
            [title] => Pending
            [notified] => 0
            [comment] => 
            [created_at] => Zend_Date Object
                (
                    [_locale:Zend_Date:private] => en_GB
                    [_fractional:Zend_Date:private] => 0
                    [_precision:Zend_Date:private] => 3
                    [_unixTimestamp:Zend_Date_DateObject:private] => 1321280177
                    [_timezone:Zend_Date_DateObject:private] => Europe/London
                    [_offset:Zend_Date_DateObject:private] => -3600
                    [_syncronised:Zend_Date_DateObject:private] => 0
                    [_dst:protected] => 1
                )

        )

)
)

2 个答案:

答案 0 :(得分:0)

对我而言,这看起来像Varien_Object::__call()的默认例外,只要您尝试调用Varien_Object实例的未知方法,就会引发该例外。

您完全错过了在相应类中定义isCustomerNotificationNotApplicable方法,或者已定义和被调用方法的拼写不匹配。

要识别导致异常的类,我会在mageDebugBacktrace()的{​​{1}}指令中附加throw的输出。

如果没有回溯输出,则可能会在扩展Varien_Object::__call() 的类中抛出异常,从而覆盖Varien_Object方法。在这种情况下,请扫描__call()匹配的代码,并在找到的方法中附加function __call(输出。

答案 1 :(得分:0)

最后,我们复制了1.6.1中的新代码文件,并将它们复制到我们的路径中。这一切似乎都很好。

相关问题