TypeError: Cannot access offset of type Drupal\Core\Queue\DatabaseQueue

Created on 23 July 2025, 19 days ago

Problem/Motivation

When having multiple notifications active in a cron run, the following error appears:

TypeError: Cannot access offset of type Drupal\Core\Queue\DatabaseQueue in isset or empty in Drupal\Core\Queue\QueueFactory->get() (line 58 of core\lib\Drupal\Core\Queue\QueueFactory.php).

Steps to reproduce

Have 2 notifications for the same state change.
Edit a node with that state change.
Run cron

Proposed resolution

Separate naming of queue object and queueu name.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024