Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.4
Component:
Order
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2021 at 03:36 UTC
Updated:
30 Jun 2023 at 18:39 UTC
Jump to comment: Most recent
Comments
Comment #2
jsacksick commentedThe error seems to indicate that your order doesn't reference a store. Do you have a default store setup? Can you double check if a store is resolved? That is more likely an issue that is specific to your setup as this is clearly not happening on a Vanilla Drupal install.
Feel free to recategorize this as a bug report if you're able to provide reproducible steps that'd help us track down this bug.
Comment #4
berramou commentedI have the same error but it comes from cart, when i try to access to carts i get the error, or when i place cart block in the header i get that error in all pages.
Any idea what would be the issue ?
Comment #6
gooddev commentedaccording to Line 669 of modules/contrib/commerce/modules/order/src/Entity/Order.php there is probably missing a Store to that order. Maybe you have delete the store in the past, but order or cart was created when store was still exisiting?
Line 669 of modules/contrib/commerce/modules/order/src/Entity/Order.php:
Comment #7
bwilliams1992 commentedJust had a similar issue myself, I think it turned out that a store was deleted with a half completed order in the database that still referenced the deleted store, deleted all order entities and it seems to have solved the issue.