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

Stalski’s picture

Status:Active» Closed (cannot reproduce)

Is 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

tobiberlin’s picture

Version:7.x-1.0» 7.x-1.1
Status:Closed (cannot reproduce)» Active

re-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:

Warning: Invalid argument supplied for foreach() in element_children() (Zeile 6400 von /includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (Zeile 5867 von /includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (Zeile 5922 von /includes/common.inc).

The warning messages are published again and again - seems as if every message which is deleted fires these errors?!