Undefined property: stdClass::$createdByName - stdClass::$relatedName

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brotherlouie
    Junior Member
    • May 2023
    • 27

    #1

    Undefined property: stdClass::$createdByName - stdClass::$relatedName

    Hello,

    I am seeing repeated warnings in the EspoCRM log:

    Undefined property: stdClass::$createdByName
    Undefined property: stdClass::$relatedName

    These warnings appear when stream updates or @mentions occur.

    Observations:

    • Stream update email notifications are delivered successfully when no warnings appear
    • When the email notification is not sent, these warnings are logged
    • Assignment emails and cron jobs work normally
    • The warnings seem to occur during notification/email processing
    • The system continues to function despite the warnings

    Additional note:

    • I am mentioning the same user on the same entity, and sometimes the email is sent, sometimes it is not.
    • When the email is sent → no warnings in the log
    • When the email is not sent → the warnings above appear

    It appears that during the notification process, Stream/Note data may be missing the expected properties (createdByName, relatedName).

    Has anyone encountered this before, or can clarify under which conditions these fields might not be populated?

    EspoCRM Version: 9.3
    PHP: 8.3
    MySQL

    Thank you.
    Last edited by brotherlouie; 02-15-2026, 11:07 AM.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9658

    #2
    Fixes E_WARNING "Undefined property: stdClass::$relatedName / $createdByName" triggered when opening notifications via the bell icon. Notification::getData() returns stdClass and may not ...

    Comment

    Working...