Not Solved Error on Forum warning system plugin
#1
Not Solved
i get this error:

Warning: Division by zero in /home/www/.../inc/plugins/fws.php on line 971

Can you fix this please?
Reply
#2
Not Solved
Find in plugins/fws.php:
$new_warning = preg_replace('#\%#', '', $warning);
And after it, add:
if(!$new_warning || $new_warning == '') $new_warning = "0";
This fix will be in the next release too (no date yet)
Reply
#3
Not Solved
Thank you very much. Problem solved.

But I found another problem: When I warn a member without a reason, I get this error: (In admin panel, I set 'Allow Empty Reasons?' to 'No')

Fatal error: Call to undefined function: outputpage() in /home/www/.../fws.php on line 87

And I have a question if you don't mind:

How can I add warning level on member profile view and member postbit?

Thanks in advance.
Reply
#4
Not Solved
Hmm. are you sure that you are using the latest version?
On that line, the outputpage($fws) must be replaced by output_page($fws)
It should be fine in the last released version (1.1.1)
Reply
#5
Not Solved
Smethead Wrote:Hmm. are you sure that you are using the latest version?
On that line, the outputpage($fws) must be replaced by output_page($fws)
It should be fine in the last released version (1.1.1)

Ok, I install version 1.1.1 but now when I warn a member without a reason, opens a blank page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)