Notice: Undefined index: user in hook_entity_view

Created on 24 April 2014, about 11 years ago
Updated 24 June 2025, 11 days ago

The following notice is issued in hook_entity_view when visiting a user profile:

Notice : Undefined index: user in recently_read_entity_view() (line 40 in recently_read/recently_read.module).

This is fixed in the 7.x-dev version, but still occur in 7.x-3.0.
The attached patch fixes it, until the next stable release.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada manumilou

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

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