I am using this module with Heartbeat (7.x-1.0). I have created a Panel page. I have added Statuses form with its default view and also relations activity block from heartbeat. For some time it was working fine. After that I removed relations activity block from that page, and auto refresh of statuses view failed. I observed a js break of statuses.js at line no 136 with error:
Undefined function Drupal.heartbeat.pollMessages()

To resolve this, I have included js of heartbeat in hook_init() of custom module.
drupal_add_js(drupal_get_path('module', 'heartbeat') . '/js/heartbeat.js');

This worked well.

Regards,
Tanmay

Comments

IceCreamYou’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

linus79’s picture

deleting

if (Drupal.heartbeat) {
   Drupal.heartbeat.pollMessages();
}

in statuses.js (lines 135/136/137)

works!

linus79’s picture

now the problem is to comment the post!

An HTTP error 404 occurred.

in heartbeat/comment/post

tanmayk’s picture

@linus79:
You really think, its related to Drupal.heartbeat.pollMessages(); statement? Can you please check in error logs, what errors are there??

IceCreamYou’s picture

@linus79: I agree with @tanmayk, #4 is a different problem. Please address separate problems in their own issues (in this case it sounds like something for the Heartbeat queue).