getOriginal() does not exist.

Created on 21 July 2025, 10 days ago

Problem/Motivation

Error: Call to undefined method Drupal\user\Entity\User::getOriginal() in /var/www/html/web/modules/contrib/user_expire/user_expire.module on line 477 #0 [internal function]: user_expire_user_presave()

Steps to reproduce

Save a user account.

Proposed resolution

Change $original = $account->getOriginal(); to $original = $account->original;

Currently, users will not be able to save changes to their profile

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Ben25

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