【问题标题】:"A server error stopped your order from being placed. Please try to place your order again" in magento 2“服务器错误阻止您下订单。请尝试再次下订单”在 magento 2
【发布时间】: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 如果您找到了解决方案,为什么不在这里发布?

标签: magento magento2


【解决方案1】:

我也遇到了同样的错误,但是当我查看日志错误消息时,我发现缺少了三个表sequence_order、sequence_shipment和sequence_invoice,还需要在sales_sequence_profile和sales_sequence_meta表中添加这个表条目。

我发现这很有用https://magento.stackexchange.com/questions/110701/magento-2-syntax-error-or-access-violation-1103-incorrect-table-name-query

【讨论】:

    【解决方案2】:

    我今天也面临同样的错误。就我而言,我添加了一个观察者,用于在 ERP 中发送数据。下单时出错。

    所以我建议您禁用最近添加的模块或禁用观察者或插件。然后尝试调试您的代码。它将毫无疑问地解决并提供帮助。

    【讨论】:

      猜你喜欢
      • 2013-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-15
      • 1970-01-01
      • 2017-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多