TokenReplace error when value is empty

Created on 16 September 2021, about 4 years ago
Updated 19 September 2024, about 1 year ago
The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\adobe_analytics\VariableFormatter::tokenReplace() must be of the type string, null given, called in /var/www/docroot/modules/contrib/adobe_analytics/src/VariableFormatter.php on line 296 in Drupal\adobe_analytics\VariableFormatter->tokenReplace() (line 320 of modules/contrib/adobe_analytics/src/VariableFormatter.php).

The following happens whenever an empty string value is used when rendering the variables.

Gonna provide a patch where we check for the value if its empty to skip tokenReplace.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States marioangulo

Live updates comments and jobs are added and updated live.
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