PDA

View Full Version : [HELP] Warning: Division by zero in /arcade.php on line 1756


Pamela
11-08-2007, 07:31 PM
Hello! I'm running ibProArcade v2.5.6+ (on vBulletin 3.5.4) and our members absolutely love it! Everything was running super smoothly for about a year and then out of the clear blue, we're getting this error message:


Warning: Division by zero in /arcade.php on line 1756


It was running normally this morning and we had a bit of a server glitch and now we're seeing this error. Could you please tell me how to fix it (with as detailed instructions as possible since I don't have a clue how to fix these kinds of things!). :erm:

Thank you!!!! :)

Pamela
11-19-2007, 04:16 AM
I figured it might help if I posted the code for line 1756-1760:


if( ($cat_counter % $this->arcade->settings['cats_per_tr'] == 0) && ($this->arcade->settings['cats_per_tr'] != 0) && ($cat_counter != 0) )
{
$categories .= "</tr><tr>";
$cat_counter = 0;
}


It was working completely normally for a very long time and then this error started. Can ANYONE please help me fix it???

Thank you! :(

MrZeropage
11-20-2007, 07:07 AM
what are your settings in the arcade main settings about "categories per row" ?

Pamela
11-20-2007, 08:34 AM
Under "Amount of cats to show per row (0=disabled)", it says 0. I haven't changed anything there though.

MrZeropage
11-21-2007, 06:35 AM
I modified some code for upcoming v2.6.6+ at this place, by now try to change the value to 1 and then back to 0 and check if this helps for now

Pamela
11-21-2007, 11:43 PM
I works when I keep it at 1 and not go back to 0, so I'll just keep it at 1. Thanks so much for your help!!!!!!