ypeError: Drupal\klaro\Utility\KlaroHelper::matchKlaroApp(): Argument #1 ($str) must be of type string, null given

Created on 11 March 2025, 23 days ago

Problem/Motivation

In some situations a field value is empty and the error occurs:

TypeError: Drupal\klaro\Utility\KlaroHelper::matchKlaroApp(): Argument #1 ($str) must be of type string, null given, called in [...]/modules/contrib/klaro/klaro.module on line 215 in Drupal\klaro\Utility\KlaroHelper->matchKlaroApp() (Zeile 636 in [...]/modules/contrib/klaro/src/Utility/KlaroHelper.php).

Steps to reproduce

The source is a wrong migrated node, so it is difficult to reproduce.

Proposed resolution

Check for empty value.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany jan kellermann

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