Jump to content


Photo

Warning: Cannot modify header information - headers already sent by


  • Please log in to reply
4 replies to this topic

#1 liviniseasy

liviniseasy
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 May 2006 - 03:56 PM

Hello everybody,

I know what you are thinking right now. "Here comes another idiot who didn't bother to search for the solution in the forum".

Actually I've been searching the web for the solution. I know it's a white space at the end of the begining of the file. The thing is I've downloaded lylina and pligg from sourceforge. And both should not have this white space code inserted.

I've even check all the php files for whitespaces. It's driving me cuckoo. As I have been trying to solve this problem for 2 weeks now. This is the first time I'm posting after scouring the internet for tips.


I'm using Apache 2.2, PHP 5.1.4, Mysql 5.0.1, XP, Firefox, IE 6. Please help me before I destroy my monitor due to my rage.

I left you now with the error I get from lylina.


Notice: Undefined index: title in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\fetch.php on line 80

Notice: Undefined index: logout in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\auth.php on line 63

Notice: Undefined index: u in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\auth.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\fetch.php:80) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\common.php on line 164

Notice: Undefined variable: version in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\common.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\fetch.php:80) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\common.php on line 165


cheers,
brad




#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 17 May 2006 - 04:04 PM

you should check for the undefined indices error. those are the outputs that caused the header error, not white spaces. :)
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#3 liviniseasy

liviniseasy
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 May 2006 - 04:19 PM

I suspect it's because the header problem that cause the information unable to be written to the cookies. Which cause this undefine index.


take this error from pligg for instance.

Notice: Undefined index: template in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pligg\config.php on line 91

Notice: Undefined index: search in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pligg\index.php on line 28

config.php line 91: $thetemp = $_COOKIE['template'];

index.php line 28: $main_smarty->assign('searchtext', htmlspecialchars($_REQUEST['search']));






#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 17 May 2006 - 05:21 PM

Please note these are not errors. They are notices [warnings]. You can either fix the code by pre-defining any of those undefined items or you can reduce the error_reporting level so the warnings no longer appear - either will stop output to the browser which is what generates the header error.
Legend has it that reading the manual never killed anyone.
My site

#5 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 17 May 2006 - 09:38 PM

yup they're notices. try to reduce the error reporting level first and see if that would take care of the header warning.
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users