Closed shahrukh-alizai closed 6 years ago
Hi, @shahrukh-alizai, you need to check Magento exception log to find original reason of exception.
Hi @joni-jones I found no trace except these broken references type logs:
https://gist.github.com/shahrukh-alizai/eac4d415e3bde3ccabae9151e03f2f74
@shahrukh-alizai, system.log
does not contain any useful information related to your issue.
If your exception.log
does not contain any exceptions, you can use xdebug and set breakpoint in GuestPaymentInformationManagement (for guest checkout) or PaymentInformationManagement (for registered customers) and exception object will contains original exception message.
After doing what you said @joni-jones this is what I found in my exception.log...
. . . .
. . . . .
MainCritcal The element 'product.info.options' already has a child with alias 'file'
. . . . . Main.critical The element 'product.info.options' already has a child with alias 'select'
. . . . . Main.Critical The element 'product.info.options' already has a child with alias 'date'
. . . ..
This are all made at the same time, so I'm guessing its a misconfiguration somewhere at the moment that an user tries to make an order using Braintree Payments on Magento.
I've truncate all sales orders in tables and tables related to orders. Tried to overwrite Magenot\Model\Checkout GuestPaymentInformationManagment and PaymentinformationManagment.
I have double check Braintree Ids and nothing. I updated the install to 2.1.5. Server info is PHP 7.0 memory_limit 768MB.
I can't find a solution to this please I need help.
Thanks,
Is there any update on this as I am using Magento 2.1.2 and getting same error in checkout page
@shahrukh-alizai, thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.
@shahrukh-alizai, thank you for your report. We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We have a similar problem on Magento 2.1.9 only the problem only exists on download / virtual products.
I have a similar problem on Magento 2.1.8. message: "Are your billing address and shipping address the same? If not uncheck the box, fill in the address, and hit the update button. Or did you forget to fill in a mandatory field with a red asterisk?" trace "#0 /var/www/html/test/app/code/Amasty/Checkout/Model/PaymentInformationManagement.php(46): Magento\Checkout\Model\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(1158520, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address\Interceptor))↵#1 /var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(146): Amasty\Checkout\Model\PaymentInformationManagement->savePaymentInformationAndPlaceOrder(1158520, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address\Interceptor), Array)↵#2 /var/www/html/test/var/generation/Amasty/Checkout/Model/PaymentInformationManagement/Interceptor.php(26): Amasty\Checkout\Model\PaymentInformationManagement\Interceptor->_callPlugins('savePaymentInfo...', Array, Array)↵#3 [internal function]: Amasty\Checkout\Model\PaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder(1158520, Object(Magento\Quote\Model\Quote\Payment\Interceptor), Object(Magento\Quote\Model\Quote\Address\Interceptor), Array)↵#4 /var/www/html/test/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_funcarray(Array, Array)↵#5 /var/www/html/test/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\Webapi\Controller\Rest->processApiRequest()↵#6 /var/www/html/test/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))↵#7 /var/www/html/test/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))↵#8 /var/www/html/test/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Framework\App\Http->launch()↵#9 /var/www/html/test/var/generation/Magento/Framework/App/Http/Interceptor.php(26): Magento\Framework\App\Http\Interceptor->callPlugins('launch', Array, Array)↵#10 /var/www/html/test/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http\Interceptor->launch()↵#11 /var/www/html/test/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))↵#12 {main}"
I have same problem on Magento 2.3.3. It occured when I add a coupon code and checkout with guest user. Anyone have same problem?
FWIW, I am having this problem in Magento 2.3.3, with or without coupon codes. The store does not allow guest checkout.
It seems like this error is being raised at a bottleneck where incomplete error logging is obscuring the underlying issue(s). Specifically savePaymentInformationAndPlaceOrder in vendor/magento/module-checkout/Model/PaymentInformationManagement.php
Forgot to add: this happens for only one of the stores in a multi-store setup.
I am using Magento 2.1.3, and getting xhr 400 (Bad Request) error on placing order via Stripe payment method. Same error on "Cash on Delivery" method too. I am getting same error on logged-in and guest user both. Here are the error details:
AJAX request information:
Request Payload:
Response:
General Request Information: