11
barryc
Re: Replication of notification messages
  • 2009/11/17 0:31

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


Quote:

trabis wrote:
The fix was submitted now on xoops.org. Please check if it is all ok.


I just got two notifications by email, just one copy of each, and just for "new message in thread", which is what I should get (one was notification for trabis's message).

I then looked at my PMs on xoops.org and all those relating to new posts have disappeared, just like magic.

It looks as if the fix is working.

barryC

12
trabis
Re: Replication of notification messages
  • 2009/11/17 0:36

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Well, some of the messages were pruned!

Anyway, I think I fixed the deleting messages problem.
Chaging viewpmsg.php line 45 to

$_POST['msg_id'] = unserialize($_REQUEST['msg_id']);

Some how it was not working with $_POST:
$_POST['msg_id'] = unserialize($_POST['msg_id']);
because arrays like
a:1:{i:0;i:2317179;}
after the post become
a1i0i2317179
and were breaking the unserialize function.

I think it is server related, maybe gzip or other kind of compression. Anyone knows why this happens?




13
deka87
Re: Replication of notification messages
  • 2009/11/17 6:50

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Quote:
Ok, I have the fix:
include/functions.php line 592


thanks trabis, hope this will work. btw how do i check if the users have received replicated notifications by PM too? also if the user is deleted his PM messages are deleted as well?

14
Mamba
Re: Replication of notification messages
  • 2009/11/17 7:19

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


You can check directly the table with phpMyAdmin

Login

Who's Online

83 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 83


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits