Hi -
global $user;
$roster= xmppframework_get_user_roster($user);
var_dump($roster);
gets me NULL.
I am expecting $roster to be have some kind of roster information for the variable.
I've made sure the credentials passed in $user create a valid connection, and am only getting the 'Failed to retrieve roster' and 'Could not retrieve the users roster from the system' errors.
Where am I going wrong?
Thanks for the promising module and your help.
Comments
Comment #1
calebtr commentedIf I remove the timeout from the query, but it takes 6 minutes and Drupal/PHP throws a bunch of MySQL has gone away errors.
However, when I dump the variable after that, the roster is there.
I also dumped the connection object, and when XMPP was timing out, I could see the event and logs, and now I can't, so that tells me the roster_received event triggered.
So something is odd with timeouts on our server, and the process isn't completing even though the process is.
My end goal is to integrate XMPP user presence into Drupal, and perhaps this isn't the best way to get started, so suggestions are appreciated.