QueueProcessor cron getPluginDefinition() bug

Created on 4 August 2023, over 1 year ago
Updated 18 August 2023, over 1 year ago

Problem/Motivation

After upgrade to Drupal 10.1.2, running Cron gave these warnings:

[warning] Trying to access array offset on value of type null Cron.php:264

Traced the root cause to a seemingly wrong implementation of Plugin\QueueWorker\QueueProcessor.

Cron expects a getPluginDefinition() method which is not present without the implementation of Drupal\Core\Plugin\ContainerFactoryPluginInterface.

Steps to reproduce

Proposed resolution

Attached a patch which solved the issue.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.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