-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Such Entity With Cart ID #5847
Comments
Is there any status on this? |
@saderra - are you working with a multisite setup? |
No, a single store setup. The issue seemed to go away when we ran the Alter database function outlined in several other tickets about checkout not completing. Jeremy
|
Hi Jeremy, thx! |
When i am going to edit order then getting an error like below. |
Any update on this? |
I'm facing problem in search by category on product listing page after migration from magento 1.6 to magento2.x. Please help me ASAP. Getting below errors:- 1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 3 Thanks |
I have the same error. Here is a list of requests and responses sent by the browser when I clicked "Place Order":
Maybe I'm wrong, but It seems that the order was created and the cart was cleared in step 2 |
It seems to me too. |
I am seeing the same error on a Magento 2.1.9 install. |
@saderra, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue. |
hi Everyone, I am having the same issue (magento version 2.2.3) I get ""no such entity with cartid =" there is nothing after the = sign. Was anyone able to track down the cause/cure of this? please help |
@kingavi26 have you tried updating to version 2.2.4 to see if this a bug maybe closed in the new magento 2 version? |
The error occurs when trying to checkout via Autho.net direct post, usingc sandbox or live credentials (doesn't matter). I have not tried updating to 2.2.4 as i am afraid that could bring other issues with it like updates often do, specially since we have many customizations. Here is exceptions log related to this error:
|
check if a cartId is sent back from the Payment Provider. |
this is not a bug. i think its a configuration or a wrong Implementaion of the module provided by the payment provider. |
Ok sure, lets get on stackoverflow |
Just a suggestion - can you confirm that PHP SOAP is installed? |
FIXED Im my situation, I ended up installing a 3rd party Auth.net payment module, and that worked. I gave up after 2 weeks of trying to find the cause. This works. Im happy. |
I had the same issue using paypal. It was driving me nuts, every time I confirmed the checkout on the paypal site I ended up in the cart with the message "no such entity with cart id =". Then I tried different browsers (chrome, internet explorer) and there was no issue. This led me to investigate my firefox addons. It turned out that uMatrix is the trouble maker in my case. Even when disabling it for my particular site it caused the error. Only after completely disabling it in the addons the error went away. |
kingavi26, What is the 3rd party Authorize.net payment module you used? |
This issue still existing on Magento 2 Enterprise after 3 years of original report date is unacceptable |
Here is a suggestion for Magento developers to get to the bottom of this. Make the error message better! No such entity is not a good error message. It provides no context or detail or suggestion on what could be wrong. Please make this error message better to help all of us! thanks |
I am having the same issue with a Magento 2.3.2 EE, I raised a ticket to Magento support, and here is the reply:
quite ridiculous given that this issue was raised in 2016 |
Getting the same error on checkout page while using latest amasty one step checkout module on Magento 2.3.1 CE, it creates the order successfully but can't create the user account: Error on frontend checkout success page: Error on var/log/exception.log Already tried a few ideas without any luck:
(amasty don't help unless you renew their module license) @saderra chunsli Thanks for sharing, please update us as if there any hope or suggestion... |
Upgraded Magento 2.3.1 CE to Magento 2.3.4 CE, still the same issue... |
Still an issue on Magento 2.3.4 EE multi store setup. Exact same issues reported here: [2020-03-19 18:35:44] report.ERROR: No such entity with cartId = 2433484 {"exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity with cartId = 2433484 at /app/7alebf6ygqtlm/vendor/magento/framework/Exception/NoSuchEntityException.php:50)"} [] Edit: Heard back from support and they gave me this version for Magento 2.3.4 EE, looks like it should work for previous versions as well. In staging this appears to have resolved the issue for me at least. |
This is also happening for us on Magento 2.2.3 many times per day. I was able to log a full stack trace of one of the occurrences.
The issue is coming from It appears that this is the problematic line of code
|
@wbyrnetx I have same problem with payflowpro. I found 2 cookies "PHPSESSION" for www and non www domain. It could be make prblem with session. I was make force redirect in nginx to make sure magento create 1 "PHPSESSION" cookies. But that issue comecome few time for me. |
Hi |
I have applied the same patch in one my project currently working. But still having the issue can u advise? My M2 version is Magento/2.3 (B2B) Thanks |
I had this issue today in M2.3.2 and it was stopping me from adding anything to the cart. It was due to bad code in an observer that was observing the checkout_cart_product_add_after event in my custom module. Once I cleaned up the code the error went away. Hopefully, that helps someone dealing with this. |
Still present in M2.3.7 |
Hello Team, I am try tu stripe payment used. admin side order place is not working. But fronted side work is find can you please help me how to resolve this issue. |
Having the same issue in 2.4.3. I have created a multistore setup on a website (2.3.5-p1 with php 7.3) and I get errors in checkout. The order is placed but the customer still receives the error and then they place it 2-3 times If you go on the url though there is an exception XML I created a dev instance for this and upgraded to 2.4.3 (with php 7.4) but the issue persists. |
Hi @shuffless Magento ver. 2.4.2
Hope this will help. |
Indeed this was the case on my end as well. Thank you for the hint. I believe the debugging on this is really problematic since I lost so many hours trying to figure out what was the issue. So, the troubleshooting for anyone getting this would be to disable all non-standard modules and try to reactivate and test one by one. The logs do not provide any hint about the SMTP ... completely unintuitive. @pppwu thank you for the suggestion. |
Thanks, but how did you solve this issue? |
I disabled the plugin that was setting a SMTP gateway (I used something for Amazon SES), then ran update, cleared cache and recompiled. Once that was ready I did set the native Magento email sending option (https://docs.magento.com/user-guide/system/email-communications.html). |
Same issue here with a Magento ver. 2.4.4, I don't understand why this issue is closed |
@cjohansson me too, did you fix it? I have a live site and staging site. Live was on 2.3.6 having this issue so I upgraded staging to 2.4.4-p2 and still having the same issue. My problem is that it happens with OneStepcheckout and if I disable that module and use the core checkout it works fine.. yet this checkout is used on all my sites with no issues |
@wkdcode-liam I have not found a fix for it, the error messages says a cart with a specific ID does not exist even though it exists in the database. In another 2.4.4 I don't encounter this error, I am not sure why. It is possible that the issue is not what it says it is, the error message might be missleading |
For example, the error message says SELECT * FROM quote WHERE entity_id = 3408 I actually find a quote |
Ok I solved the issue now, the issue is not what Magento 2 reports, check the XHR log in checkout for other potential issues, in my case a e-mail module failed to send e-mail and that showed the error |
Still seeing this on v2.4.5-p1 using the official Stripe module (stripe/stripe-payments) v3.3 running on PHP 8.1.13. "No such entity with cartId = " It seems to happen intermittently. We've looked at this for a fair while and it isn't clear exactly why the session appears to be lost (working theory) but it's too often to chalk up to the cart just expiring. This is in a multi-store setup (two stores). Example stacktrace:
|
I encountered this issue today after copying a live site to dev environment. Just cleaned a browser cookies for dev site, and everything works fine. |
Think I might have found it, we wanted to slightly tweak the behaviour of shipping information and gift messaging. So we copied the original method and tweaked the small bit we needed to. There isn't a null or empty check in the stuff we copied or a try/catch that handles a NoSuchEntityException. The two lines that threw the error are straight from Magento but in fairness, I should have handled that condition even if the Magento stuff didn't. May well be good reason why they'd want it to fail if no cart id was passed. The logs not showing specifically which interceptor didn't help though. There's probably a few places where the "No such entity with cart ID = ''" will get thrown. Like you say, I've seen it happen as well in Magento_Customer etc. when the session id is out of date too.
|
We gave up with ours mate, ditched the checkout and put another one on which worked fine.
Liam Chowney
Magento Developer
***@***.*** | www.stratus21.com
Stratus21 Ltd is a private limited company registered in England. Registered number: 0089780.
Registered office: Millers House, Roman Way, Market Harborough, United Kingdom, LE16 7PQ.
Disclaimer: This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed.
Any views or opinions expressed are solely those of the author and do not necessarily represent those of Stratus21 Ltd, or any of its subsidiaries.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
Please contact the sender if you believe you have received this email in error.
…________________________________
From: Christian Johansson ***@***.***>
Sent: 08 November 2022 16:39
To: magento/magento2 ***@***.***>
Cc: Liam Chowney ***@***.***>; Mention ***@***.***>
Subject: Re: [magento/magento2] No Such Entity With Cart ID (#5847)
@wkdcode-liam<https://github.com/wkdcode-liam> I have not found a fix for it, the error messages says a cart with a specific ID does not exist even though it exists in the database. In another 2.4.4 I don't encounter this error, I am not sure why. It is possible that the issue is not what it says it is, the error message might be missleading
—
Reply to this email directly, view it on GitHub<#5847 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANEKJIK72UBLAQOYYO6AN3LWHJ62LANCNFSM4CK3BZVA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: