Part of the EllisLab Network
   
 
What happen with this error ?
Posted: 31 August 2008 10:14 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  47
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)

Filename: libraries/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)

Filename: helpers/url_helper.php

Line Number
: 492

Anyone can tell me some information? Thanks

 Signature 

http://drimr.com

Profile
 
 
Posted: 31 August 2008 10:47 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  840
Joined  02-05-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 11:11 AM   [ 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 11:30 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  47
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 12: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 02:03 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  43
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
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120477 Total Logged-in Users: 27
Total Topics: 126553 Total Anonymous Users: 4
Total Replies: 665402 Total Guests: 251
Total Posts: 791955    
Members ( View Memberlist )