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

  1. Install Drupal 8, commerce 2.24 and commerce_marketplace.
  2. Update commerce to the latest 2.28
  3. observe the error

Comments

linichalexey created an issue. See original summary.

linichalexey’s picture

Assigned: linichalexey » Unassigned
Status: Active » Needs review
StatusFileSize
new3.36 KB
socialnicheguru’s picture

this solved the issue for me

socialnicheguru’s picture

Status: Needs review » Reviewed & tested by the community

  • drugan committed 475f48a on 8.x-1.x authored by linichalexey
    Issue #3259064 by linichalexey: Fatal error after commerce module update...
drugan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.