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
)
)
)
)
Within the admin section when clicking to view an order we're getting the following error:
There has been an error processing your request
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
)
)
)
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对我来说,这看起来像是
Varien_Object::__call()
的默认异常,每当您尝试调用Varien_Object
实例的未知方法时都会引发该异常。要么您完全错过了在适当的类中定义 isCustomerNotificationNotApplicable 方法,要么定义的方法和调用的方法的拼写不匹配。
为了识别导致异常的类,我将
mageDebugBacktrace()
的输出附加到Varien_Object::__call()
的throw
指令中。如果没有得到回溯输出,则异常可能会在扩展
Varien_Object
并覆盖__call()
方法的类中引发。在这种情况下,扫描代码中的function __call(
匹配项,并在找到的方法中附加mageDebugBacktrace()
输出。To me this looks like the default exception of
Varien_Object::__call()
, which is raised whenever you try to call an unknown method of anVarien_Object
instance.Either you completely missed to define an
isCustomerNotificationNotApplicable
method in the appropriate class, or the spellings of the defined and the called method do mismatch.To identify the class causing the exception, I'd append the output of
mageDebugBacktrace()
in thethrow
instruction ofVarien_Object::__call()
.If you get no backtrace output, the exception is probably thrown in a class extending
Varien_Object
and overriding the__call()
method. In that case scan your code forfunction __call(
matches and append themageDebugBacktrace()
output in the found method.最后,我们从 1.6.1 复制了新的代码文件并将它们复制到我们的路径中。那时一切似乎都很顺利。
In the end we copied in fresh code files from 1.6.1 and copied them into our path. It all seemed to work fine then.