PDA

View Full Version : URGENT!! Please HELP!


BreeBears
01-24-2007, 02:07 AM
OMG I am TOTALLY Panicig here!!! Please Please Please help!!!

Ok, here's the deal... got a problem with cookies... I have no clue when it started... its a fresh install and I've been configuring everyhing adding mods and stuff.. well I tried to log out and it wouldn't let me - and my dummy butt cleared my cookies!!!! And now I can NOT log back in ANYWHERE - Portal, Forum, PhotoPost - nothing!! Gives the following error:

Unable to add cookies, header already sent.
File: /PATHREMOVED/htdocs/Forum/modules/topten.php
Line: 15

Any Suggestions?!?!?!?!?!??!?!

I deleted the Top Ten PHP file but then it just gives me blank white page when I try to log on ugh =0(

Freakin' out here -Bree

Adrian Schneider
01-24-2007, 02:10 AM
Paste the contents of that file here (or just around line 15 if it's long). The most common cause is an extra space/newline after the closing PHP tag.

BreeBears
01-24-2007, 02:12 AM
Here's the whole file:

<?php

// ### TOP STATS ########################################

$top_stats = array();
// TOP POSTERS
$top_posters = $db->query_read("SELECT * FROM ".TABLE_PREFIX."user ORDER BY posts DESC LIMIT 10");
while($top_poster = $db->fetch_array($top_posters))
{
eval('$top_stats[\'top_posters\'] .= "' . fetch_template('top_posters') . '";');
}
unset($top_poster);
$db->free_result($top_posters);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_topposters') . '";');
?>

Line 15 would b the close php tag

Adrian Schneider
01-24-2007, 02:13 AM
Triple check to make sure there isn't a space after it.

If you want to disable it, but can't access the adminCP, edit config.php and add this: define('DISABLE_HOOKS', 1); (then disable the hack) then you can remove that line again.

BreeBears
01-24-2007, 02:14 AM
Problem solve SirAdrian!!!! I pasted the code but then went and tried to figure out what you mean and that was exactly it... spaces after closing tag.. OMG OMG OMG THANKYOU soooooooooooooooooo very much!!! You saved me from having a heart attack way too young ROFL Was totally panicing - You are my new best friend!! Thankyou Thankyou!!!!

Always -Bree

Adrian Schneider
01-24-2007, 02:21 AM
lol

Cheers :)

dartho
01-27-2007, 12:32 PM
Search function is your friend - thanks SirAdrian, helped me too...