【发布时间】:2019-01-28 17:55:43
【问题描述】:
在 Magento 2.2.5 中,查看任何订单时出现此错误。
致命错误:未捕获的 TypeError:传递给 Magento\Paypal\Model\Adminhtml\Express::isOrderAuthorizationAllowed() 的参数 1 必须是 Magento\Sales\Model\Order\Payment 的实例,给定 null,在 F:\ 中调用xampp\htdocs\magento_five\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php 在第 41 行并在 F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Model\Adminhtml\Express.php 中定义: 170 堆栈跟踪:#0 F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php(41): Magento\Paypal\Model\Adminhtml\Express->isOrderAuthorizationAllowed(NULL) #1 F :\xampp\htdocs\magento_five\vendor\magento\framework\Interception\Interceptor.php(146): Magento\Paypal\Plugin\OrderCanInvoice->afterCanInvoice(Object(Magento\Sales\Model\Order\Interceptor), false) # 2 F:\xampp\htdocs\magento_five\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Sales\Model\Order\Interceptor->Magento\Framework\Interception{closure}() #3 F: \xampp\htdocs\magento_five\genera ted\code\Magento\Sales\Model\Order\Inte in F:\xampp\htdocs\magento_five\vendor\magento\module-paypal\Model\Adminhtml\Express.php 在第 169 行
谁能帮我解决这个问题。
谢谢
【问题讨论】:
-
任何人都可以帮我解决这个问题。
标签: magento2