Previous Thread
Next Thread
Print Thread
Rate Thread
#178071 06/23/2001 8:21 AM
Joined: Apr 2001
Posts: 103
Member
Member
Offline
Joined: Apr 2001
Posts: 103
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.

[ June 23, 2001 09:05 AM: Message edited by: Saxeus ]


Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.
Sponsored Links
Entire Thread
Subject Posted By Posted
Illegal division by zero Saxeus 06/23/2001 3:21 PM
Re: Illegal division by zero AllenAyres 06/25/2001 8:15 AM
Re: Illegal division by zero Saxeus 06/28/2001 12:38 AM
Re: Illegal division by zero AllenAyres 06/28/2001 1:21 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2813
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)