vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   [HELP] Warning: Division by zero in /arcade.php on line 1756 (https://vborg.vbsupport.ru/showthread.php?t=162227)

Pamela 11-08-2007 07:31 PM

[HELP] Warning: Division by zero in /arcade.php on line 1756
 
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:


PHP Code:

                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!!!!!!


All times are GMT. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02950 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete