【问题标题】:Fatal Error on Magento Order Cancellation from customer My Account客户 My Account 取消 Magento 订单时出现致命错误
【发布时间】:2017-11-10 07:03:40
【问题描述】:

从客户的帐户取消订单时,我的 magento 1.9 出现错误。我正在使用 commercebees 扩展来扩展客户我的帐户部分的取消选项

扩展网址:https://www.commercebees.com/order-cancellation-module-make-it-easy-for-your-customers/

致命错误:在第 46 行的 /public_html/app/code/core/Mage/Payment/Model/Observer.php 中的布尔值上调用成员函数 getMethodInstance()

【问题讨论】:

    标签: php magento


    【解决方案1】:

    错误在app/code/core/Mage/Payment/Model/Observer.php这行:

    if ($order->getPayment()->getMethodInstance()->getCode() != 'free') {
    

    这意味着$order->getPayment() 返回 false。

    您可以尝试验证:

    1. 如果您需要取消的订单有正确的付款方式。也许付款方式是定制的或定制的。用其他支付方式取消订单时,尝试验证是否有同样的错误。
    2. 尝试在 app/etc/modules 目录的配置文件中禁用 commercebees 扩展。设置<active>false</active>
    3. 如果 Magento 默认取消(从管理面板)订单可以正常工作。

    如果由于 commercebees 扩展而发生错误,您可以向他们的支持团队申请帮助。

    【讨论】:

      猜你喜欢
      • 2013-11-17
      • 1970-01-01
      • 2018-10-30
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 2017-03-27
      • 2013-09-01
      • 1970-01-01
      相关资源
      最近更新 更多