Error <Cannot assign null to property CommerceGuys\Addressing\Country\CountryRepository::$defaultLocale> after version 2 upgrade

Created on 6 March 2024, about 1 year ago

After upgrading module from Drupal 9.5 with Address 8.x-1.11 to Drupal 10.2.3 with Address 2.0.1
I'm getting the following error

Uncaught PHP Exception TypeError: "Cannot assign null to property 
CommerceGuys\Addressing\Country\CountryRepository::$defaultLocale of type string" 
at /app/web/modules/contrib/address/src/Repository/CountryRepository.php line 37

It crashes on:

  • pages with address
  • editing address field
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024