Magento - 管理员查看订单错误

发布于 2024-12-15 07:31:03 字数 941 浏览 2 评论 0原文

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

处理您的请求时出错

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浅笑轻吟梦一曲 2024-12-22 07:31:03

对我来说,这看起来像是 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 an Varien_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 the throw instruction of Varien_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 for function __call( matches and append the mageDebugBacktrace() output in the found method.

旧时光的容颜 2024-12-22 07:31:03

最后,我们从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文