Warning: Undefined array key 0 in Drupal\Core\Database\Query\Condition->condition()

Created on 2 August 2023, over 1 year ago
Updated 6 February 2024, 10 months ago

Problem/Motivation

When importing a menu, the following warning message appears:
Warning: Undefined array key 0 in Drupal\Core\Database\Query\Condition->condition() (line 114 of core/lib/Drupal/Core/Database/Query/Condition.php).
Drupal\Core\Database\Query\Condition->condition('menu_link_content.uuid', Array, '=') (Line: 27)
Drupal\Core\Database\Query\Select->condition('menu_link_content.uuid', Array, NULL) (Line: 77)
...

Steps to reproduce

Install module, export a menu and then import it.

Proposed resolution

I have created a patch that fixes this issue.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇸🇪Sweden ordermind

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

Comments & Activities

Production build 0.71.5 2024