Mage2 : Arg 1 传递给 Magento\PayPal\Model\Adminhtml\Express

  • 本文关键字:PayPal Model Adminhtml Express Magento Arg Mage2 magento2
  • 更新时间 :
  • 英文 :


在Magento 2.2.5中,我在查看任何订单时收到此错误。

致命错误:

未捕获的类型错误:参数 1 传递给 Magento\PayPal\Model\Adminhtml\Express::isOrderAuthorizationAllowed(( 必须是 Magento\Sales\Model\Order\Payment(( 的实例,给定空值,在第 41 行的 F:\xampp\htdocs\magento_five\vendor\magento\module-PayPal\Plugin\OrderCanInvoice.php 中调用,并在 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\generated\code\Magento\Sales\Model\Order\Inte in F:\xampp\htdocs\magento_five\vendor\magento\module-PayPal\Model\Adminhtml\Express.php 在第 169 行

谁能帮我解决这个问题。

谢谢

将您的Magento版本更新到2.2.5。 Magento在2.2.5版本上解决了上述问题。

最新更新