php forum
php mysql forum
php mysql smarty
 
Topic Options
#178071 - 06/23/01 08:21 AM Illegal division by zero
Saxeus Offline
Member

Registered: 04/02/01
Posts: 89
Loc: Europe

   Illegal division by zero  to Del.icio.us Add to del.icio.us
  Digg Illegal division by zero Digg it
I moved my forum to another hosting server following everything as it should, cgi and pl as ascii and the rest as binary, chmoded what should be chmoded, opened vars_config.cgi to edit the unix paths for the forum, logged in the cp, did a refresh cache and rebuild forum stats, but when I clicked to the link to open my forum, I got this error:

Content-type: text/html
Software error:
Illegal division by zero at /.../.../.../cgi-bin/ubbcgi/ubb_forum_summary.cgi line 108.
Please send mail to this site's webmaster for help.

so I opened the file the error says, in the code below:

&OpenFileAsArray("$vars_config{NonCGIPath}/$exact_path/lastnumber.file");
$TotalTopics = $data[1]; chomp($TotalTopics);
$TotalPosts = $data[2]; chomp($TotalPosts);
}

in the ubb_forum_summary.cgi, line 108 is :
$TotalTopics = $data[1]; chomp($TotalTopics);
and now comparing to the ubb_forum_summary.cgi without any hacks, this doesn't exist, so I found out this was from the statistics hack I've done weeks ago.
I checked the other topics in ubbdev, went to the support forums in infopop and still couldn't find the answer about this.
My question is, what should I do in here to make the forum work? What kind of problem does that code give in here that it didn't in the other hostserver when I installed the hack?

An example of the forum in the old server
http://www.albforum.com/cgi-bin/ubbcgi/ultimatebb.cgi?category=6

and an example of the forum in the new server
http://www.albforumi.com/cgi-bin/ubbcgi/ultimatebb.cgi?category=6

Notice that even whois online doesn't have things fine.
Any help is very appreciated.

<FONT COLOR="#000000" SIZE="1">[ June 23, 2001 09:05 AM: Message edited by: Saxeus ]</font>
_________________________
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.

Top
#178072 - 06/25/01 01:15 AM Re: Illegal division by zero
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25428
Loc: Texas
I transfer/upload/download every file for the ubb except the .gif's and .jpg's in ascii... those .file files and the .pm files all need to be ftp'd in ascii... you think that might be where the problem is? (In other words, do you think you may have transferred them in binary?)
_________________________
- Allen wavey
- What Drives You?

Top
#178073 - 06/27/01 05:38 PM Re: Illegal division by zero
Saxeus Offline
Member

Registered: 04/02/01
Posts: 89
Loc: Europe
the *.file and *.pm files are uploaded as ASCII as well, because while downloading in my computer and uploading in the other server, I selected the directories, not just files one by one. So all the Forum# directories are down and up-loaded in ASCII mode. So I think that isn't the problem...
_________________________
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.

Top
#178074 - 06/27/01 06:21 PM Re: Illegal division by zero
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25428
Loc: Texas
You might consider upgrading then, they had some similar problems with earlier versions like 6.01.
_________________________
- Allen wavey
- What Drives You?

Top


Moderator:  Gizmo 
Who's Online
2 Registered (AllenAyres, tackaberry), 35 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
10/05/08 03:47 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 12
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
W-D 3

 

 

 
fusionbb message board php hacks