Division by Zero in Compact Message [message #29762] |
Sat, 14 January 2006 15:33 |
djechelon
Messages: 46 Registered: July 2005
Karma: 0
|
Member |
|
|
Looks like there is a problem with Compact Message feature.
I ran it and that's the output:
Disabling the forum for the duration of maintenance run
Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
10% done
ETA: 0 seconds
20% done
ETA: 0 seconds
30% done
ETA: 0 seconds
40% done
ETA: 0 seconds
50% done
ETA: 0 seconds
60% done
ETA: 0 seconds
70% done
ETA: 0 seconds
80% done
ETA: 0 seconds
100% Done
Compacting private messages...
Warning: Division by zero in /home/xxx/forum/adm/compact.php on line 88
Warning: Division by zero in /home/xxx/forum/adm/compact.php on line 89
0% done
ETA: 0 seconds
100% Done
Done in 0,00 minutes
Re-enabling the forum.
Probabily this is because I don't have any Private Message (Forum just opened).
|
|
|
|
|
|
|
Re: Division by Zero in Compact Message [message #29791 is a reply to message #29780] |
Mon, 16 January 2006 14:42 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
With the patch I've posted earlier the entire private message compacting block is skipped in the event there are no private messages. Meaning that the eta_calc() function wouldn't even be called if there are no private messages.
FUDforum Core Developer
|
|
|
|
Re: Division by Zero in Compact Message [message #29795 is a reply to message #29762] |
Mon, 16 January 2006 15:51 |
djechelon
Messages: 46 Registered: July 2005
Karma: 0
|
Member |
|
|
Sorry but it still doesn't work...
I clicked on th patch link, then on the
install/www_root/adm/compact.php link and right-clicked and Saved "1.61" (Mozilla Firefox). I went in the Admin area, File Manager, adm directory. I deleted the old compact.php file, uploaded the new one, CHMOD 0755 (my server requires it) and I still got that error, as follows:
Disabling the forum for the duration of maintenance run
Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
10% done
ETA: 0 seconds
20% done
ETA: 0 seconds
30% done
ETA: 0 seconds
40% done
ETA: 0 seconds
50% done
ETA: 0 seconds
60% done
ETA: 0 seconds
70% done
ETA: 0 seconds
80% done
ETA: 0 seconds
90% done
ETA: 0 seconds
100% Done
Compacting private messages...
Warning: Division by zero in /home/www/kamelot/forum/adm/compact.php on line 88
Warning: Division by zero in /home/www/kamelot/forum/adm/compact.php on line 89
0% done
ETA: 0 seconds
Warning: Division by zero in /home/www/kamelot/forum/adm/compact.php on line 88
Warning: Division by zero in /home/www/kamelot/forum/adm/compact.php on line 89
0% done
ETA: 0 seconds
100% Done
Done in 0,00 minutes
Re-enabling the forum.
When I said there are no private messages in the Forum, I was unfortunately wrong. The first user already started to chit-chat , because there are entries in the Forum_pmsg table (I suppose that's the PM table).
So maybe this error is caused by something else...
[Updated on: Mon, 16 January 2006 15:53] Report message to a moderator
|
|
|
|
|