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>