Warning: Undefined array key 0 in Drupal\Core\Database\Query\Condition->condition() (line 114 of core/lib/Drupal/Core/Database/Query/Condition.php)

Created on 7 January 2024, 11 months ago

Problem/Motivation

Getting Warning: Undefined array key 0 in Drupal\Core\Database\Query\Condition->condition() (line 114 of core/lib/Drupal/Core/Database/Query/Condition.php) when we add Language Interface filter on the view

Steps to reproduce

1. Create a view.
2. Add fields.
3. Filter the view using Content: Translation language then select Is one of select as operator and Interface text language selected for page

4. Save the view as a page.
5. View the created view using anonymous user.
6. Get the error message.

Proposed resolution

As per D10 update we saw that condition checks $value[0], the problem is that when adding Content: Translation language filter and used nterface text language selected for page as value the array key passed to the condition is ***LANGUAGE_language_interface***. We must update the value to use the correct array key to correct the issue.

๐Ÿ› Bug report
Status

Active

Version

10.1 โœจ

Component
Node systemย  โ†’

Last updated about 19 hours ago

No maintainer
Created by

๐Ÿ‡ต๐Ÿ‡ญPhilippines erwindaez

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

Comments & Activities

Production build 0.71.5 2024