Error: Call to undefined method Drupal\user\Entity\User::getUserName()

Created on 23 September 2024, about 2 months ago

Problem/Motivation

When navigating to the Notification List page provided by a custom inotify module an error is raised. This prevents users from viewing the notification list.

Steps to reproduce

1. Enable the module.
2. Navigate notification/add and add notification
2. Navigate to the URL /notification/list
3. The following error is displayed in Recent log messages.
Error: Call to undefined method Drupal\user\Entity\User::getUserName() in Drupal\inotify\InotifyNotificationListBuilder->buildRow() (line 35 of /app/web/modules/custom/inotify/src/InotifyNotificationListBuilder.php).

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India dev2.addweb

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