Error QCodo Session_Start()

thread: 5 messages  |  last: a year ago  |  started: thursday, april 1, 2010, 12:02 pm pdt


#1  |  Mattia Bagiella (Switzerland) Switzerland
Thursday, April 1, 2010, 12:02 PM PDT

Hello all, I have a mystery problem with session_start, but when I modify something the page with error session_start and relaunch the error desapear don't know why ???

session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /Users/mbagiella/Sites/contographie8/web/pages/InsertConte.form.php:1)
Error Type:   E_WARNING    

Source File:   /Users/mbagiella/Sites/contographie8/qcodo/wwwroot/includes/prepend.inc.php         Line:   103    

Line 98:    
Line 99:            
Line 100:            /////////////////////////////
Line 101:            // Start Session Handler (if required)
Line 102:            /////////////////////////////
Line 103:            session_start();
Line 104:    
Line 105:            //////////////////////////////////////////////
Line 106:            // Setup Internationalization and Localization (if applicable)
Line 107:            // Note, this is where you would implement code to do Language Setting discovery, as well, for example:
Line 108:            // * Checking against $_GET['language_code']

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, April 1, 2010, 12:40 PM PDT

Looks like you may have some trailing whitespace (E.g. a single space or a carriage return) at the top of your InsertConte.form.php file.

#3  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Thursday, April 1, 2010, 1:44 PM PDT

or your file is in UTF with bom

#4  |  Mattia Bagiella (Switzerland) Switzerland
Friday, April 2, 2010, 12:47 AM PDT

Hi, no white space :(
All my files are charset utf8 what is bom ?

#5  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Friday, April 2, 2010, 2:50 AM PDT

http://en.wikipedia.org/wiki/Byte_order_mark

Basically its something you most likely get for using notepad on windows to edit you php files.

It should be harmless but php chokes on it.

Notepad++ can display if your file has bom.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.