Part of the EllisLab Network
   
 
What happen with this error ?
Posted: 31 August 2008 11:14 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  08-17-2008

Hello, i get this error when i run my code on server, on my localhost i don’t get this problem

A PHP Error was encountered

Severity
Warning

Message
Cannot modify header information headers already sent by (output started at /home/hahahaha/public_html/test/application/controllers/comments.php:1)

Filenamelibraries/Session.php

Line Number
315
A PHP Error was encountered

Severity
Warning

Message
Cannot modify header information headers already sent by (output started at /home/hahahaha/public_html/test/application/controllers/comments.php:1)

Filenamehelpers/url_helper.php

Line Number
492 

Anyone can tell me some information? Thanks

 Signature 

http://drimr.com

Profile
 
 
Posted: 31 August 2008 11:47 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  770
Joined  02-06-2007

97 results for a search on “Cannot modify header information”. Probably white space before or after php tags.

 Signature 

“I am the terror that flaps in the night”

Profile
 
 
Posted: 31 August 2008 12:11 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
RankRankRankRank
Total Posts:  1040
Joined  06-19-2007

Nice Response Rick.  I was trying to figure out how to put that in nice language.  I was going to post this in the lounge…remember that post that usmc wrote some time ago…?

 Signature 

My new therapist is working with me every day, the third one gave up… ohh

Profile
 
 
Posted: 31 August 2008 12:30 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  08-17-2008

i didnt understand why just get this problem when run on server,while not on localhost :-?

 Signature 

http://drimr.com

Profile
 
 
Posted: 31 August 2008 01:03 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
RankRankRankRank
Total Posts:  1040
Joined  06-19-2007

run php_info() on both and see how you have your error reporting set.  Maybe error_reporting is set differently in each environment?

Randy

 Signature 

My new therapist is working with me every day, the third one gave up… ohh

Profile
 
 
Posted: 29 December 2008 03:03 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  07-06-2008

I had exactly the same Problem as TS (Berserk). I did run Localhost on a Windows computer where as my hostingprovider uses Linux. The problem only accured - but not always - with files that were coded in UTF-8 encoding. I used PSPad 4.1 for that task. My solution? I installed the latest version of Notepad++ and saved the files causing error-messages again in UTF-8 format without BOM. Visibly nothing has changed but the error-messages are gone. I hope this will do the trick for you aswell.

Profile