urlencode(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 27 April 2022, over 2 years ago
Updated 30 October 2023, about 1 year ago

Hi, I upgraded to php 8.1 and these deprecated function errors are thrown:

Deprecated function: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\simple_gmap\Plugin\Field\FieldFormatter\SimpleGMapAddressFormatter->simpleGmapViewElements() (line 254 of modules/contrib/simple_gmap/src/Plugin/Field/FieldFormatter/SimpleGMapTrait.php).

Deprecated function: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in Drupal\simple_gmap\Plugin\Field\FieldFormatter\SimpleGMapAddressFormatter->simpleGmapViewElements() (line 261 of modules/contrib/simple_gmap/src/Plugin/Field/FieldFormatter/SimpleGMapTrait.php).

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States drupgirl

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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.71.5 2024