“服务器错误导致您无法下订单。请尝试再次下订单”在 magento 2

问题描述 投票:0回答:3

我正在尝试在 magento 2 中下订单。当我单击“下订单”时,我遇到此错误“服务器错误阻止您下订单。请尝试再次下订单。”。

我的付款方式是货到付款。

在控制台“{”message”:“服务器错误导致您无法下订单。请尝试再次下订单。","trace":"#0 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Checkout\Model\PaymentInformationManagement ->savePaymentInformationAndPlaceOrder(15,对象(Magento\Quote\Model\Quote\Payment),对象(Magento\Quote\Model\Quote\Address)) #1 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callParent('savePaymentInfo...', Array) #2 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->Magento\Framework\Interception\{closure}(15 , 对象(Magento\Quote\Model\Quote\Payment), 对象(Magento\Quote\Model\Quote\Address)) #3 /var/www/html/magento2/ generated/code/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Magento\Checkout\Model\PaymentInformationManagement\Interceptor->___callPlugins('savePaymentInfo...',数组,数组) #4 [内部函数]: Magento\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(15, Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address)) #5 /var/www/html/magento2/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(数组,数组) #6 /var/www/html/magento2/app/code/Magento/Webapi/Controller/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(对象(Magento\Framework\Webapi\Rest) \请求\代理)) #7 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(对象(Magento\Framework\App\Request\Http) )) #8 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array) #9 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception\{closure}(对象(Magento\Framework\App\Request\Http)) #10 /var/www/html/magento2/ generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array ) #11 /var/www/html/magento2/lib/internal/Magento/Framework/App/Http.php(137): Magento\Webapi\Controller\Rest\Interceptor->dispatch(对象(Magento\Framework\App\Request) \http)) #12 /var/www/html/magento2/ generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #13 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->launch() #14 /var/www/html/magento2/index.php(41): Magento\Framework\App\Bootstrap->run(对象(Magento\Framework\App\Http\Interceptor)) #15 {主要}"}"

请帮忙

magento magento2
3个回答
0
投票

我遇到了同样的错误,但是当我检查日志错误消息时,我发现缺少三个表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-in Correct-table-name-query


0
投票

就我而言,这是因为我忘记启动rabbitMQ服务器,这是我的模块之一所必需的。 我能够通过更改错误显示来调试实际错误来找到它“服务器错误阻止您下订单。请尝试再次下订单。”$e->getMessage()显示实际错误消息为 module-checkout/Model/PaymentInformationManagement 中的 “连接在 localhost:127.0.0.1:5672 上被拒绝”(5672 是rabbitMQ 的端口号)。

注意:确保所有服务正在运行


-1
投票

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

所以我建议您禁用最近添加的模块或禁用观察者或插件。然后尝试调试您的代码。它绝对会解决并帮助充分。

© www.soinside.com 2019 - 2024. All rights reserved.