Wrong type passed to Entity Query (Drupal 10)

Created on 28 November 2022, almost 2 years ago
Updated 20 April 2023, over 1 year ago

Problem/Motivation

With Drupal 10, with taxonomy lookup, a Markup object is being passed instead of string to the entity condition which in terms leads to an array instead of a string at query execution. Resulting in:
mb_strtolower(): Argument #1 ($string) must be of type string, array given in mb_strtolower() (line 36 of /app/web/core/lib/Drupal/Core/Config/Entity/Query/Condition.php).

Steps to reproduce

- With Drupal 10, use a taxonomy lookup setup.

Proposed resolution

Enforce passing a string to the taxonomy instead of a string like object.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nickdickinsonwilde Victoria, BC (T'So-uke lands)

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