Cron fails when working on Paragraphs

Created on 3 May 2024, about 2 months ago
Updated 23 May 2024, about 1 month 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.69.0 2024