Problem/Motivation
After commerce module update application fails because of changes in CommerceContentEntityStorage instance creation and as a result missing event_dispatcher service.
The website encountered an unexpected error. Please try again later.
Error: Call to a member function dispatch() on null in Drupal\commerce\CommerceContentEntityStorage->postLoad() (line 48 of modules/contrib/commerce/src/CommerceContentEntityStorage.php).
Trace:
Drupal\commerce\CommerceContentEntityStorage->postLoad(Array) (Line: 307)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 146)
Drupal\commerce_marketplace\MarketplaceStorage->loadMultiple(Array) (Line: 250)
Drupal\Core\Entity\EntityStorageBase->load('8') (Line: 25)
Drupal\commerce_store\StoreStorage->loadDefault() (Line: 93)
Drupal\commerce_marketplace\MarketplaceStorage->loadDefault() (Line: 33)
Steps to reproduce
- Install Drupal 8, commerce 2.24 and commerce_marketplace.
- Update commerce to the latest 2.28
- observe the error
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3259064-2-error-after-commerce-update.patch | 3.36 KB | linichalexey |
Comments
Comment #2
linichalexey commentedComment #3
socialnicheguru commentedthis solved the issue for me
Comment #4
socialnicheguru commentedComment #6
drugan commentedThanks!