Error trying to cancel user account

Created on 1 December 2023, about 1 year ago
Updated 22 December 2023, 12 months ago

Problem/Motivation

Attempting to cancel a user account raises the following error:
Call to a member function id() on null in notify_user_cancel() (line 86 of .../web/modules/contrib/notify/notify.module)

User account is not cancelled

Steps to reproduce

On /admin/people:
Select a user
Select the Action: "Cancel the selected user account(s)"
Select this cancellation method: Delete the account and make its content belong to the Anonymous user.
User is not deleted. Error: Call to a member function id() on null in notify_user_cancel() (line 86 of .../web/modules/contrib/notify/notify.module)

Proposed resolution

Current version of notify.module line 86: ->condition('uid', $user->id())

Should it be?: ->condition('uid', $user->id)

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024