Part of the EllisLab Network
   
 
weird behavior (1.5.0/1.5.1)
Posted: 13 December 2006 08:23 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  14
Joined  05-13-2006

i get the ff. warning after a few loads/refreshes but doesn’t appear once you hit refresh right after:

A PHP Error was encountered

Severity
: Warning

Message
: Cannot modify header information - headers already sent by (output started at D:\site\erpts.v2\system\application\controllers\references\provctl.php:1)

Filename: libraries/Session.php

Line Number
: 282

it also occurs on other controller scripts.  but the note on the Session.php library is common on all warnings.  has anyone else experienced this and fixed it?  if so, please help!

 Signature 

will code for coffee

Profile
 
 
Posted: 13 December 2006 08:43 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006

There have been lots of reports of this.  Try searching the forums.  The answer is likely that you have spaces or line breaks before or after <?php, or that you are otherwise echoing out content.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 13 December 2006 09:00 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  14
Joined  05-13-2006

no extra spaces or lines.  the problem didn’t occur when i was on 1.4.x.  it started when i upgraded to 1.5.0 and later to 1.5.1.  also, the problem occurs sporadically.  whenever it occurs, i just hit refresh w/o modifying any code, and the warning disappears.

 Signature 

will code for coffee

Profile
 
 
Posted: 13 December 2006 09:21 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

If you’re sure there is no whitespace, something in “provctl.php” is throwing and error an causing output before your headers are sent. Possibly trying to read from the session before it is started. That may be why it’s intermittent and clears up after a refresh.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 13 December 2006 11:54 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  14
Joined  05-13-2006

ack! got it. it’s a problem with my previous editor.  the default file settings added extra characters which didn’t show in the new editor i’m using.  raspberry

thanks for the tip guys LOL

 Signature 

will code for coffee

Profile
 
 
Posted: 15 December 2006 04:34 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  886
Joined  03-06-2006

For cool corey, I would recommend getting a LiveCD like Knoppix and booting from that.  That will put you in a Linux system without messing with your hard drive.

You should then be able to browse the web and do enough stuff on your computer to rule out hardware problems. The Knoppix programs load slowly because they come from the CD, but they should execute quickly after they load.

This is the best way I know to diagnose Windows virus/spyware/rootkit problems.  A lot of Windows sysadmins keep such a CD handy just for this purpose.  You can even use it to repair certain problems that are almost impossible to fix from WITHIN a messed up system.

For information, try Knoppix.net

 Signature 

Corozal, Belize | Linux.bz | Using Kubuntu Linux 7.10 | CodeIgniter 1.5.3

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 719, on June 06, 2008 10:16 AM
Total Registered Members: 66413 Total Logged-in Users: 20
Total Topics: 84753 Total Anonymous Users: 1
Total Replies: 454816 Total Guests: 245
Total Posts: 539569    
Members ( View Memberlist )
Newest Members:  byrooNirCalexmuellerkizerdrixcaptainredmuffquinodligtharttechsivamDjordjesammozza