This is a great module but I have yet to ever get any of the OG streams to work properly. I have tried this on several different production sites all with clean installs. I am using the latest dev and noticed the new stream additions (e.g. membersactivity, singleactivity, etc). The one I'm primarily interested in using is the Members Activity stream.

- Fresh Install
- Heartbeat 7.x-1.x-dev and OG 7.x-2.x-dev
- Create a group
- Add the 'membersactivity' stream to the page. I've tried adding it via the context module, panels, and loading it as a block using display suite. Using context and panels simply nothing appears in the area where I've added the stream. When attempting to load it via display suite I get the following error:

Notice: Undefined property: stdClass::$content in ds_render_block_field() (line 1100 of /www/sites/all/modules/ds/ds.module).

If I try to use the 'groupactivity' stream as block in context I get the following error:

Notice: Trying to get property of non-object in GroupActivity->detectGroup() (line 36 of /www/sites/all/modules/heartbeat/modules/heartbeat_og/streams/groupactivity.inc).

I'm a huge fan of this module but I think many other people have had trouble getting this to work with OG. I have tried on fresh installs with all of the default settings. Any help would be greatly appreciated!

Comments

Sinan Erdem’s picture

Confirming the problem with the latest release of Heartbeat.

Sinan Erdem’s picture

mrsean’s picture

Version: 7.x-1.x-dev » 7.x-1.1

Hi all,
I was having this problem as well.

I fixed this on my server by hacking
/heartbeat/modules/heartbeat_og/streams/groupactivity.inc
I replaced line 36 ,

$this->setGroup($og_context->etid);

with

$this->setGroup($og_context['gid']);

Perhaps the og_context API changed, so that what gets returned from

$og_context = og_context()

on line 34 doesn't contain etid anymore?