Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
had worked well, and then start to appear notice.
Notice: Trying to get property of non-object in views_handler_field_heartbeat_message->render() (line 38 of /home/path1/public_html/sitename.info/sites/all/modules/heartbeat-7.x-1.0/heartbeat/views/views_handler_field_heartbeat_message.inc).
After adding this logic
if(empty($variables)){ return false; }else{
return $this->render_message($template->message, $variables);
}
it works good again, but why it appears?
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedIs this fixed in dev? I surely cannot reproduce this and actually don't see a reason why this could happen.
Very likely this was a problem in 7.x-1.0
Comment #2
tobiberlinre-open
I found this error message starting a long list of error messages. The error messages appearr when I go to a view I created to list all heartbeat messages just after I mass deleted all heartbeat messages and created a new one. The above notice message is followed by these warning messages:
The warning messages are published again and again - seems as if every message which is deleted fires these errors?!