PDA

View Full Version : New error


imported_Vengeance2k0
08-11-2005, 12:04 PM
when i go to view a thead i get the following error


Warning: Division by zero in /includes/functions_showthread.php on line 667

Warning: Division by zero in /includes/functions_showthread.php on line 669

Warning: Division by zero in /includes/functions_showthread.php on line 671

and also this

Unable to add cookies, header already sent.
File: /home/killer/public_html/Forums/includes/init.php
Line: 27

Revan
08-11-2005, 12:30 PM
I've never encountered either error before. I believe the init.php error is not cause of the RPG, because you would have recieved this error before the previous error had it been cause of the same file edits.
Can you post lines 660-680 of /includes/functions_showthread.php?

imported_Vengeance2k0
08-11-2005, 12:36 PM
yup here it is


{
$post['uhp'] = "<a style='color:#FF0000'>$post[uhp]</a>";
}
if ($hpbar < 15)
{
$post['uhp'] = "<a style='color:#FFFF00'>$post[uhp]</a>";
}
if ($post['uma'] == 0)
{
$post['uma'] = "<a style='color:#FF0000'>$post[uma]</a>";
}
if ($mabar < 15)
{
$post['uma'] = "<a style='color:#FFFF00'>$post[uma]</a>";
}
// End RPG Integration Hack by Bitsys

// SHOW CLAN START
if ($post['clan'] != 0)
{
$showuserclan = "<a href='clans.php?do=view&amp;clanid=$post[clan]'>$post[clantitle]</a>";

Revan
08-11-2005, 12:43 PM
It seems like you didn't edit the showthread.php query correctly. This indicates you removed the RPG bits from the actual query, or didn't plug the variables in as per the install file.

imported_Vengeance2k0
08-11-2005, 12:48 PM
Can I talk to you on msn, and i installed the hack before i editied th file is that what i did wrong?

the error's i'm getting now are saying 654

http://www.infinitigaming.neoevo.net/Forums/showthread.php?t=37

Revan
08-11-2005, 12:53 PM
That shouldn't have any effect, as long as you uploaded the edited showthread file.
And I don't have access to MSN often.

imported_Vengeance2k0
08-11-2005, 12:56 PM
ah, allright

and hate to be a pain but in the user.php part of admincp there is also an error.

Warning: array_sum(): The argument should be an array in /admincp/user.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home/killer/public_html/Forums/includes/init.php:27) in /includes/functions.php on line 2953

Revan
08-11-2005, 01:37 PM
Well, if you take a look at my admincp/user.php edit, you will not find array_sum anywhere, so that's not my fault :)

imported_Vengeance2k0
08-11-2005, 01:39 PM
You don't need to have ushop/ u cash installed do you?

Revan
08-11-2005, 01:42 PM
Yes you do, lol. It says so in the release thread.

imported_Vengeance2k0
08-11-2005, 01:43 PM
ah, allright i had it installed but it was messing up, i think i'll wait for my friend to get online so he can help me.

unless is there some way you can install it for me?

or help.

Boofo
08-11-2005, 02:18 PM
It sounds like you need to un-install it and start over. ;)

imported_Vengeance2k0
08-12-2005, 02:32 AM
Well i finally got it to work, thanks guys.