Undefined custom_id

Created on 14 November 2023, about 1 year ago

Problem/Motivation

I am preparing to upgrade from D9 to D10.
The site was previously using Context 8.x-4.1
and a patch for this same issue
https://www.drupal.org/project/context/issues/3263286 ๐Ÿ› Undefined custom_id RTBC

The site logs are full of this warning message:
Warning: Undefined array key "custom_id" in Drupal\context\Plugin\ContextReaction\Blocks->execute() (line 264 of /modules/contrib/context/src/Plugin/ContextReaction/Blocks.php)

Steps to reproduce

Install Drupal 9 and Context version 5.0.0-rc1

Proposed resolution

Apply the same fix as the patch at:
https://git.drupalcode.org/project/context/-/merge_requests/25/diffs?com...

I applied the same code adjustment to the 5.0.0-rc1 codebase and created a patch. Applying the patch resolved the warning messages for my site. The warning messages are no longer present.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024