Problem/Motivation

I have an up to date (8.x-2.x) commerce and drupal core with 2 languages : EN + FR.
I create an entity with a commerce_price field in a new module. When i enable it, i have a fatal error :
( ! ) Fatal error: Call to a member function getId() on a non-object in /modules/contrib/commerce/src/Resolver/DefaultLocaleResolver.php on line 50
Deleting FR language to only have EN default language make installation works, but if you have more than default EN language, installation will fail with this error message.

Comments

GoZ created an issue. See original summary.

Xano’s picture

Xano’s picture

bojanz’s picture

Status: Active » Closed (duplicate)