PDA

View Full Version : "Cannot Add Header Information"


Rose
01-19-2002, 01:03 AM
I'm having a bit of problem with my vB. :(


On my forum homepage and also on the login page of the Admin CP I get the following error:

Warning: Cannot add header information - headers already sent by (output started at /home/simpson/public_html/admin/functions.php:2228) in /home/simpson/public_html/admin/functions.php on line 1498

Warning: Cannot add header information - headers already sent by (output started at /home/simpson/public_html/admin/functions.php:2228) in /home/simpson/public_html/admin/functions.php on line 1498

Warning: Cannot add header information - headers already sent by (output started at /home/simpson/public_html/admin/functions.php:2228) in /home/simpson/public_html/admin/functions.php on line 1498

Three times. Now if I'm logged in, I don't get quite as bad of a message, but now that I'm not logged in anymore (d'oh), I have no way to access the board (it's turned off in the admin CP) or the admin control panel. When I try to log into the Admin CP, it looks like it's going to allow it, then it goes back to the normal login screen (no warnings). It just loops through this. :(

So, basically I'm stuck.

The last hack I installed was the "Smilie Reorder" by Firefly. I thought all was going well, but I had a few errors, now this. I do not recall changing anything after I installed this hack.

I have tried reuploading the edited files (admin/functions.php & admin/smilie.php) over the hacked files, but no luck. I even tried uploading the files from January 2nd in case I accidently saved over the original backup file. No luck.

Can running queries have anything to do with this? I do not know much about these.

Please, if anyone has any suggestions or advice, it would be much much appreciated. :)

Rose
www.simpsonsboard.com <---Check out the problem there for yourself!


edited to add I have checked the line of code the error is in, and it doesn't seem to be the problem. It's the default line of code. setcookie($name, $value, $expire, $cookiepath, '', $secure);

Knoman
01-19-2002, 01:24 AM
make sure there isnt any whitespaces in the files you were editing

Scott MacVicar
01-19-2002, 01:57 AM
look in functions.php at line 2228 cause you have something there which is outputing content before everything else and it has to be whitespace as there is nothing in the source.

Rose
01-19-2002, 01:47 PM
:) :thumbs up:


Thanks, PPN!!!!

I've had this problem before where somehow a little "square" is added after the ?> at the end of the .php file. I didn't realize this is the kind of problem it caused, though. Now I know to remember to always check to see if there's that white space at the end of the file before uploading.

Errors fixed!!!


Thanks again, you're great!

Scott MacVicar
01-19-2002, 02:21 PM
no problem

I seem to know alot about errors, mainly as I seem to encounter them alot while scripting ;)

Rose
01-24-2002, 01:25 PM
*lol*


Well, experience (and mistakes) are the best learning tools, eh? ;)