-
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
Multisite / No such entity with cartId = XX #6522
Comments
From firebug:
|
Same thing here, many stores. Default store orders from admin are OK, cannot create orders from other stores, I get a No such entity with cartId = XX error. |
@Ubeo - did you try creating frontend orders? In one of our clients shop they seems to be blocked... |
@gewaechshaus yes, it works on frontend. |
Got the same issue with a multistore setup. Can only create backend orders for the default store. Choosing an other store results in this error message. |
@PascalBrouwers - what's going on in your frontend? Our clients guest frontend orders are partially blocked 2, so be aware... |
Frontend is ok. But we like to be able to make a backend order as well ;) |
Any updates about it ? |
I have the same issue on version 2.1.3 (multiwebsite)
As a workaround, I always have to set the current store using @magento-team, please fix this issue asap. Thanks. |
Experiencing the same issue on CE 2.1.3. |
Same here... |
Same here. having issue in CE 2.1.2 |
I'm having this issue on and off for the last couple of days. After downloading an updated database from our staging server, when I try to checkout I was getting error message "No such entity with cartId = 0". However, if I switch to a new incognito browser I was able to checkout, while still getting the error in my regular browser. The issue seems to have something to do with the wrong ID getting posting to estimate-shipping-methods rest api. Error in regular browser posting Incognito browser posting Which causes the function below to return zero because 582 is not a valid mask_id. Magento version 2.1.3 vendor/magento/module-quote/Model/GuestCart/GuestShippingMethodManagement.php
|
I'm getting this same issue on 2.1.4 |
I'm also having the problem in 2.1.5 and it's causing lots of problems. Please fix asap. |
Hi, @gewaechshaus. We need more information about your configuration to reproduce this issue. Please, specify payment and shipping methods you use and your second website's settings. |
Hi, @asrar7787. Tried to reproduce it as you told but still can't get this error message.
What i missed? What i must to do to reproduce it? |
Hi @IlnitskiyArtem, have you tried following the steps given by @alexpoletaev ? |
The issue still persists in EE 2.1.6. I will not be verbose again as other members already did earlier, it's a waste of time, if you do not really appreciate others time! Anyway, debug this class in multi-store installation for admin orders Why core team not taking it seriously given that merchants spend money for Enterprise edition?! I would suggest a member of advisory board team should take a look into it. |
And do not just tag This is misleading, an Enterprise Level misleading, as I spent few hours considering the issue does not exist. So I had to debug all other modules and stuff. But eventually, it's the core code! I would not mind screen cast with you tbh! |
M2 guys, please acknowledge this issue and fix that asap. |
I think I am receiving this error. As a further test I added code to the root index.php to change website run code param to my second store effectively making that my default store. When I did this I could edit orders for my second store without errors but I would get errors whenever I tried to edit an order from the default store. |
Hi mate, would you mind sharing/explaining your code where and how you were able to implement your workaround please? Thanks Asrar |
Hi @asrar7787, we had this issue with the 3rd party module, but the problem is that magento always retrieves a quote (if the QuoteRepository was used) from the admin area for the default store, so you need to find the place where you catch this exception and provide a store id like this:
or, at least, like this:
it's better to use the first example. So using this way you telling Magento for which store you want to retrieve the quote. |
I was having trouble finding the correct place to place the code mentioned above. I was eventually able to work out a slightly hacky way of doing this (do it at the start of all order saves in admin). I'm still testing this for any possible issues it might cause so use at your own risk /vendor/magento/module-sales/Controller/Adminhtml/Order/Create/Save.php |
@alexpoletaev probably fixed in e93c44e ( |
I had to create a 'before' plugin for order see below: the etc/adminhtml/di.xml for declaring the plugin:
and the plugin for controller
That should work. @orlangur Thanks for the update, I will give that a go. |
Seeing this issue on 2.1.9, except I'm not running multistore, we only have one storefront. Also I'm not seeing it on the back end, we are getting this problem during regular checkout. @asrar7787 - I was going to try your solution, but then I realized that this is a fix for the admin, so not applicable to people buying via the regular cart. Would setting the site to single store mode (assuming there is no need for multistore) resolve this issue? |
We are experiencing this issue quite a lot as well on Magento 2.1.6. Here are my thoughts: What I found is that every time the order is created it throws that "No such entity" exception. When the quote is converted to order, it sets is_active to 0. Later on, on success page, it tries to get the quote and because it has is_active as 0, it throws that exception. Any comments from the devs about this? Are my observations correct? Thanks. |
…s-failures MC-40448: integration-tests-failures
Steps to reproduce
Expected result
Actual result
What I tested so far:
Regards
Jan
The text was updated successfully, but these errors were encountered: