Cron fails when working on Paragraphs

Created on 3 May 2024, 7 months ago
Updated 23 May 2024, 6 months ago

Problem/Motivation

In our logs, we see this error:

Error: Call to undefined method Drupal\paragraphs\Entity\Paragraph::setRevisionUserId() in Drupal\entity_reference_purger\Plugin\QueueWorker\EntityReferencePurgerWorker->processItem() (line 137 of /app/web/modules/contrib/entity_reference_purger/src/Plugin/QueueWorker/EntityReferencePurgerWorker.php)

As a result, the cron queue gets started over and over again, resulting in the same error.

Looks like a regression from 🐛 Race condition when using queue Needs review where a new revision gets saved on the entity, which fails when working with entities of the Paragraph type.

Steps to reproduce

  • Install the Paragraphs module and create a paragraph type with an entity reference field
  • Enable this module on that field
  • Wait until cron runs (or start it manually)

Proposed resolution

Do a better check on the entity.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany mrshowerman Munich

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024