TypeError: CommerceGuys\Addressing\Address::withPostalCode(): Argument #1 ($postalCode) must be of type string, null given

Created on 11 December 2023, 10 months ago
Updated 12 December 2023, 10 months ago

I am just noticing this now, but I believe that this affects earlier versions as well like 8.x-4.12.

I am getting this error

TypeError: CommerceGuys\Addressing\Address::withPostalCode(): Argument #1 ($postalCode) must be of type string, null given, called in /home/customer/www/myothersite.ca/public_html/modules/contrib/geocoder/modules/geocoder_address/src/AddressService.php on line 133 in CommerceGuys\Addressing\Address->withPostalCode() (line 247 of /home/customer/www/myothersite.ca/public_html/vendor/commerceguys/addressing/src/Address.php).

In this use case I am only using the Country, City and Province fields.

When I save an existing node with no changes to the address field it saves successfully.

When I create new nodes with an address field or edit any fields in the address fields.
I get a WSOD and the error above is created.

🐛 Bug report
Status

Closed: duplicate

Version

4.15

Component

Code

Created by

🇨🇦Canada dadderley Vancouver

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