Hi,

I have created a custom module which creates a new stream using hook_heartbeat_stream_info(). The stream is coming up nicely on heartbeat/streams page and on user's profile page.

But when i uninstall this custom module, the stream is no longer visible on streams page(a correct behavior) but it gives the below error on the home page.

Recoverable fatal error: Argument 1 passed to heartbeat_plugins_heartbeat_stream_load() must be an instance of HeartbeatStream, null given in heartbeat_plugins_heartbeat_stream_load() (line 372 of /var/www/dr7/sites/all/modules/heartbeat/modules/heartbeat_plugins/heartbeat_plugins.module).

CommentFileSizeAuthor
heartbeat.png143.66 KBchhavik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stalski’s picture

This should be fixed in dev. Can you checkout that version and close this issue if it is fixed there?
Thx

chhavik’s picture

Thanks for your quick reply Stalski. Will checkout the dev version and then update this issue accordingly.

chhavik’s picture

Stalski,

Now i am no more getting the above error with the dev version. But on uninstalling the module, my custom stream is still visible on "/heartbeat/streams" page . And i have to explicit click on the delete button to remove it from the database, which was not the case with previous 7.x-1.0 version.

Let me know how to fix this issue, should i trigger a delete query in .install file or is this something that can be fixed within the module itself.

Regards.

chhavik’s picture

Status: Active » Closed (fixed)

Clearing the cache solved the last problem. Thanks.

Stalski’s picture

I was going to suggest that. It's still in the ctools cache. So heartbeat needs to invoke that after uninstall.
thx for the check!