I am trying to Place order in magento 2. when i click on Place order I am facing This error “A server error stopped your order from being placed. Please try to place your order again.”.
My payment method is Cash On Delivery.
in Console “{“message”:”A server error stopped your order from being placed. Please try to place your order again.”,”trace”:”#0 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformationAndPlaceOrder(15, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))n#1 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callParent(‘savePaymentInfo…’, Array)n#2 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): MagentoCheckoutModelPaymentInformationManagementInterceptor->MagentoFrameworkInterception{closure}(15, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))n#3 /var/www/html/magento2/generated/code/Magento/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): MagentoCheckoutModelPaymentInformationManagementInterceptor->___callPlugins(‘savePaymentInfo…’, Array, Array)n#4 [internal function]: MagentoCheckoutModelPaymentInformationManagementInterceptor->savePaymentInformationAndPlaceOrder(15, Object(MagentoQuoteModelQuotePayment), Object(MagentoQuoteModelQuoteAddress))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): MagentoWebapiControllerRestSynchronousRequestProcessor->process(Object(MagentoFrameworkWebapiRestRequestProxy))n#7 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))n#8 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): MagentoWebapiControllerRestInterceptor->___callParent(‘dispatch’, Array)n#9 /var/www/html/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): MagentoWebapiControllerRestInterceptor->MagentoFrameworkInterception{closure}(Object(MagentoFrameworkAppRequestHttp))n#10 /var/www/html/magento2/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): MagentoWebapiControllerRestInterceptor->___callPlugins(‘dispatch’, Array, Array)n#11 /var/www/html/magento2/lib/internal/Magento/Framework/App/Http.php(137): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))n#12 /var/www/html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(24): MagentoFrameworkAppHttp->launch()n#13 /var/www/html/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(261): MagentoFrameworkAppHttpInterceptor->launch()n#14 /var/www/html/magento2/index.php(41): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))n#15 {main}”}”
Please Help
3
Answers
The same error is facing by me today. In my case i have added an observer for sending data in ERP. There was some error while placing order.
So i suggest you please disable recently added module or disable observer or plugins. then try and debug your code. it would defiantly solve and help full.
I got the same error, but when I checked log error Message, I found the three tables sequence_order, sequence_shipment and sequence_invoice were missing also need to add this table entries in sales_sequence_profile and sales_sequence_meta table.
I found this is useful https://magento.stackexchange.com/questions/110701/magento-2-syntax-error-or-access-violation-1103-incorrect-table-name-query
In my case, it was because i forgot to start rabbitMQ server which was necessary for one of my modules.
I was able to find it by debugging the actual error by changing the error display "A server error stopped your order from being placed. Please try to place your order again." to $e->getMessage() which showed actual error message as "connection refused on localhost:127.0.0.1:5672" (5672 is port no for rabbitMQ) in module-checkout/Model/PaymentInformationManagement.
Note: Ensure all your services are running