Bug tracker
Queued Jabber notifications don't get delivered (fix completed in vcs)
Steps to reproduce:
1. write a PM to a user with Jabber notification turned on (posting on a watched topic probably would work too)
2. there is a cache/queue.php with content which looks sensible
3. wait some time until the queue run is called
4. the queue.php seems to be gone but no Jabber message is sent
Messaging via the Jabber profile link works - probably because it is not queued.
Using:
php 5.1.4
Tried jabber servers: jabber.ccc.de and a own one running jabberd 2.0.11
Comments / History
Aug 12 23:23:06 [jabberd/c2s] [8] [forum@changed.for.privacy/Forum] error: XML parse error (not well-formed (invalid token))
- Code: Select all
--- functions_messenger.php 22 Aug 2006 21:26:05 -0000 1.56
+++ functions_messenger.php 30 Aug 2006 05:31:22 -0000
@@ -463,7 +463,8 @@
$this->queue->put('jabber', array(
'addresses' => $addresses,
'subject' => $this->subject,
- 'msg' => $this->msg)
+ 'msg' => $this->msg,
+ 'encoding' => $this->encoding)
);
}
unset($addresses);
@@ -620,6 +621,7 @@
break;
case 'jabber':
+ $this->jabber->encoding = $encoding;
foreach ($addresses as $address)
{
$this->jabber->send_message($address, 'normal', NULL, array('body' => $msg));
After doing this change, everything is working as expected. I am using current CVS
- Code: Select all
$num_items = (sizeof($data_ary['data']) < $package_size) ? sizeof($data_ary['data']) : $package_size;
evaluated to 0. So the jabber message was not sent