MyBB Community Forums

Full Version: Error on Forum warning system plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i get this error:

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

Can you fix this please?
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)
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.
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)
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.