Error after commerce upgrade to 2.28

Created on 16 November 2021, over 2 years ago
Updated 15 September 2023, 10 months ago

I've got a variation table displaying in a view and since upgrading to commerce 2.28 I get the error:

Error: Call to a member function dispatch() on null in Drupal\commerce\CommerceContentEntityStorage->invokeHook() (line 60 of modules/contrib/commerce/src/CommerceContentEntityStorage.php).

Trace:
Drupal\commerce\CommerceContentEntityStorage->invokeHook() (Line: 189)
Drupal\Core\Entity\ContentEntityStorageBase->initFieldValues() (Line: 119)
Drupal\Core\Entity\ContentEntityStorageBase->doCreate() (Line: 216)
Drupal\Core\Entity\EntityStorageBase->create() (Line: 228)
Drupal\commerce_pvt\Plugin\views\field\EditVariationQuantity->getOrderType() (Line: 219)

Due to this change:

https://git.drupalcode.org/project/commerce/-/commit/58b8941e1ceb620b2bf...

I'm unsure if this is a bug with commerce or pvt?

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom rviner

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024