liviniseasy Posted May 17, 2006 Share Posted May 17, 2006 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 80Notice: Undefined index: logout in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\auth.php on line 63Notice: Undefined index: u in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\auth.php on line 65Warning: 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 164Notice: Undefined variable: version in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lylina\inc\common.php on line 165Warning: 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 165cheers,brad Quote Link to comment https://forums.phpfreaks.com/topic/9863-warning-cannot-modify-header-information-headers-already-sent-by/ Share on other sites More sharing options...
ryanlwh Posted May 17, 2006 Share Posted May 17, 2006 you should check for the undefined indices error. those are the outputs that caused the header error, not white spaces. :) Quote Link to comment https://forums.phpfreaks.com/topic/9863-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-36645 Share on other sites More sharing options...
liviniseasy Posted May 17, 2006 Author Share Posted May 17, 2006 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 91Notice: Undefined index: search in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pligg\index.php on line 28config.php line 91: $thetemp = $_COOKIE['template'];index.php line 28: $main_smarty->assign('searchtext', htmlspecialchars($_REQUEST['search'])); Quote Link to comment https://forums.phpfreaks.com/topic/9863-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-36652 Share on other sites More sharing options...
AndyB Posted May 17, 2006 Share Posted May 17, 2006 Please note these are [b]not errors[/b]. They are [b]notices[/b] [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. Quote Link to comment https://forums.phpfreaks.com/topic/9863-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-36670 Share on other sites More sharing options...
ryanlwh Posted May 17, 2006 Share Posted May 17, 2006 yup they're notices. try to reduce the error reporting level first and see if that would take care of the header warning. Quote Link to comment https://forums.phpfreaks.com/topic/9863-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-36737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.