Log in

View Full Version : Problems for users, big ones :|


Blam Forumz
08-24-2005, 04:48 PM
Wierd reason, this is only hapening to some of my users, on all forums, except for one, they get this error:


Warning: Division by zero in /includes/functions_forumdisplay.php on line 248

Warning: Division by zero in /includes/functions_forumdisplay.php on line 248

Warning: Division by zero in /includes/functions_forumdisplay.php on line 248

Warning: Division by zero in /includes/functions_forumdisplay.php on line 248

Warning: Division by zero in /includes/functions_forumdisplay.php on line 248


the one forum i mentioned above, they don't get this error repeating as much as it does on the others, here's a screenshot a member provided

http://img76.imageshack.us/img76/6199/blam2ab.jpg
http://img196.imageshack.us/img196/3623/error2yq.png
Thanks for all the help :/]

ps, only a few users get this message :/

Andreas
08-24-2005, 04:49 PM
Hard to tell if we don't know what's in your forumdisplay.php around line 248.

Best advice I can give without further details: Reload the Original.

Blam Forumz
08-24-2005, 04:51 PM
That's exactly what I did, i re-uploaded native vB files, no vb files had been edited anyway, just made sure by re-uploading it, but still, they're getting the error :/

Andreas
08-24-2005, 04:52 PM
Which Version is that?

Blam Forumz
08-24-2005, 04:55 PM
3.5 Rc2

Marco van Herwaarden
08-24-2005, 05:00 PM
And what is on that line?

Blam Forumz
08-24-2005, 05:11 PM
In class_core.php, lne 2688:


echo "<br /><strong>Warning</strong>: $errstr in <strong>$errfile</strong> on line <strong>$errline</strong><br />";



on functions_forumdisplay.php:

$thread['totalpages'] = ceil($thread['totalposts'] / $pperpage);

Andreas
08-24-2005, 05:14 PM
Configuration Error ... or a Bug in the log run as there is no sanity Check.

ACP / vBulletin Options / vBulletin Options / Thread Display Options (showthread)
Maximum Displayed Posts Before Page Split and User-Settable Maximum Displayed Posts must not be empty/zero.

Blam Forumz
08-24-2005, 05:41 PM
ohh it all makes sense now, i set the max posts displayed before page split to 0 :/

Andreas
08-24-2005, 05:43 PM
Thought so ;)
I reported this as a Bug @ .com, cause I feel it needs a sanity Check.

Blam Forumz
08-24-2005, 06:16 PM
Thanks for the help ^_^