OrderVersionMismatchException when updating the cart or checking out

Created on 27 November 2023, about 1 year ago

Describe your bug or feature request.

I am getting this issue on commerce 2.36

Drupal\commerce_order\Exception\OrderVersionMismatchException: Attempted to save order 56 with version 6. Current version is 7. in Drupal\commerce_order\Entity\Order->preSave() (line 681 of /app/web/modules/contrib/commerce/modules/order/src/Entity/Order.php).

Some additional context here: https://www.drupal.org/project/commerce/issues/3227507#comment-15331754 🐛 Exception\OrderVersionMismatchException Closed: outdated

Apply this patch and turn on exceptions for review: https://www.drupal.org/project/commerce/issues/3404282 📌 Improve the order version exception logging Fixed
Change the setting from admin/commerce/config/orders/settings to "Prevent the save and throw an exception that may cause a fatal error.."

If a bug, provide steps to reproduce it from a clean install.

🐛 Bug report
Status

Closed: duplicate

Version

2.36

Component

Order

Created by

🇺🇸United States nicxvan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024