Drupal/Core/Database/Query/Condition - unhandled null values

Created on 3 March 2023, almost 2 years ago
Updated 4 March 2023, almost 2 years ago

Problem/Motivation

Redirect Module with patch to include path_alias
Condition.php throws an error when $condition['operator'] is null
This only happens in PHP8.1, not PHP8.0 because of PHP8.1's better handling of nulls.

Steps to reproduce

Install Redirect Module, install patch 2981544
Create redirects in Redirect View
Filter on To and From fields
This will generate the null error on the Redirect View page

Proposed resolution

In the Condition.php file, check to see if the $condition['operator'] is null before trying to use it.
This is done in two places in the code.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

πŸ› Bug report
Status

Closed: works as designed

Version

9.5

Component
DatabaseΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡¨πŸ‡¦Canada tenden

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

Comments & Activities

Production build 0.71.5 2024