Configuration page for Google Maps is producing error

Created on 24 April 2023, about 1 year ago
Updated 2 May 2023, about 1 year ago

Problem/Motivation

The configuration page for Google Maps is producing an error that is preventing auto complete.

The website encountered an unexpected error. Please try again later.
TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in unserialize() (line 40 of modules/contrib/address_autocomplete/src/Plugin/AddressProviderBase.php)

Steps to reproduce

PHP 8/Drupal 9 go here: admin/config/address-autocomplete/google-maps

Proposed resolution

Added this line to convert the array to string on AddressProviderBase.php line 39:
$configurationSerialized = serialize($configurationSerialized)
I was then able to bypass the error. The configuration page loads correctly as well.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇺🇸United States wstocker

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

Comments & Activities

Production build 0.69.0 2024