【发布时间】:2019-10-08 09:20:58
【问题描述】:
我正在尝试在 magento 2 中下订单。当我单击下订单时,我遇到此错误“服务器错误阻止了您的订单。请尝试再次下订单。”。
我的付款方式是货到付款。
在控制台"{"message":"服务器错误阻止了您的订单。请尝试再次下订单。","trace":"#0 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Checkout\Model\PaymentInformationManagement ->savePaymentInformationAndPlaceOrder(15, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address))\n#1 /var/www/html/magento2/lib/internal/Magento /Framework/Interception/Interceptor.php(138): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callParent('savePaymentInfo...', Array)\n#2 /var/www/html/magento2/lib/internal /Magento/Framework/Interception/Interceptor.php(153): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->Magento\Framework\Interception\{closure}(15, Object(Magento\Quote\Model\Quote\Payment),对象(Magento\Quote\Model\Quote\Address))\n#3 /var/www/html/magento2/generated/code/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento\Checkout\Model \PaymentInformationManagement\Interceptor->___callPlugi ns('savePaymentInfo...', Array, Array)\n#4 [内部函数]: Magento\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(15, Object(Magento\Quote\Model\Quote\Payment),对象(Magento\Quote\Model\Quote\Address))\n#5 /var/www/html/magento2/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array )\n#6 /var/www/html/magento2/app/code/Magento/Webapi/Controller/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(Object(Magento\Framework\ Webapi\Rest\Request\Proxy))\n#7 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(对象(Magento\Framework\App\Request\Http))\n#8 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138):Magento\Webapi\Controller\Rest \Interceptor->___callParent('dispatch', Array)\n#9 /var/www/html/magento2/lib/internal/Magento/Framework/Int erception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#10 /var/ www/html/magento2/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array)\n#11 /var/www/html/magento2/lib/internal/Magento/Framework/App/Http.php(137): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http ))\n#12 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()\n#13 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->launch()\n#14 /var/www/html /magento2/index.php(41): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))\n#15 {main}"}"
请帮忙
【问题讨论】:
-
这是一个一般性错误,表示您在尝试提交付款信息时遇到错误 400/500。它需要提交正确的 JSON。它可能是由许多原因引起的,因此您需要找到向其发送信息的 XHR 请求的内容,然后检查您在结帐时所做的自定义操作是否中断、php 函数或被调用的函数在它返回错误之前。通常这可能发生在客户/客户地址属性和高级 js 捆绑中。
-
几个用户发布了他们的解决方案。你可能会发现它很有帮助。 magento.stackexchange.com/questions/149546/…
-
感谢您的回复,但我得到了答案。
-
@VishalVarshney 我也面临同样的问题,请问您如何解决?
-
@VishalVarshney 如果您找到了解决方案,为什么不在这里发布?