Latest release 3.0.19 breaks restore for Drupal 10 sites

Created on 1 October 2025, 7 days ago

Problem/Motivation

The latest release 3.0.19 includes code from πŸ“Œ Add support for path aliases Needs review which makes use of a method on EntityBase called setOriginal when restoring content. This method was only introduced in Drupal 11 via πŸ“Œ Define 'original' as property on the entity object Needs work .

Steps to reproduce

On a d10 site, try to restore content, and get exception:
"Error: Call to undefined method Drupal\node\Entity\Node::setOriginal() in Drupal__node__NodeStorageTrash68dd472bb772f->restoreFromTrash() (line 81 of modules/contrib/trash/src/TrashStorageTrait.php)."

Proposed resolution

Possibly revert that issue and commit it in a new branch that's D11-only.
Not sure if there's a backwards compatible way to handle that new code in D10 or not

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024