Hi,

Really enjoying working with this module. Trying to use the messaging module integration, but it keeps throwing an error.

To recreate:
1. Enbale the "messaging debug" module
2. To go http://yoursite/admin/messaging/settings/test
3. Select "Send method" as "appbar", fill out rest of form, and send.
4. Form returns "Sent message with result: Error"

I've had something similar when trying to use the integration using a call to messaging_message_send_user($recipient, $message, 'appbar'); so I 99.9% sure it's nothing to do with the messaging module itself.

It seems the appbar_messaging function doesn't offer a "destination" parameter which other hook_messaging functions have. I've only been using both modules for a day so I could be way off the mark.

I will continue to debug, any pointers would be great!
Cheers
Tom

Comments

icecreamyou’s picture

It's been a long time since I wrote the Messaging integration and it's possible that the API could have changed since then. I won't have time to look at this for awhile, but of course any patch would be appreciated.

icecreamyou’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure what's going on here. Everything looks right to me. $uid is used instead of $destination for send methods with address_type "user" so that's not the problem.

I haven't tried to reproduce this, but are you still having this problem?

icecreamyou’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
farzan’s picture

I encountered the same problem. After some investigations I found out that I was using version 2.x of Messaging and Notifications packages. Make sure you are using the version 4.x of these packages.