View Full Version : New error

11 Aug 2005, 13:04
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

11 Aug 2005, 13:30
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?

11 Aug 2005, 13:36
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

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

11 Aug 2005, 13:43
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.

11 Aug 2005, 13:48
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


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

11 Aug 2005, 13:56
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

11 Aug 2005, 14:37
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 :)

11 Aug 2005, 14:39
You don't need to have ushop/ u cash installed do you?

11 Aug 2005, 14:42
Yes you do, lol. It says so in the release thread.

11 Aug 2005, 14:43
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.

11 Aug 2005, 15:18
It sounds like you need to un-install it and start over. ;)

12 Aug 2005, 03:32
Well i finally got it to work, thanks guys.