[eluser]aroman[/eluser]
Hi guys,
ive fixed the problem regarding this error message "Cannot modify header information - headers already sent by ..."
I try to set $config['log_threshold'] = 4, run the page and checkd the log files,
this is what i got:
Code:
. . .
10 DEBUG - 2008-09-15 18:01:22 --> Database Driver Class Initialized
11 DEBUG - 2008-09-15 18:01:22 --> Session Class Initialized
12 DEBUG - 2008-09-15 18:01:22 --> A session cookie was not found.
13 ERROR - 2008-09-15 18:01:22 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\auction_dev_beta1\system\application\controllers\feed.php:1) C:\xampp\htdocs\auction_dev_beta1\system\libraries\Session.php 315
14 DEBUG - 2008-09-15 18:01:22 --> Model Class Initialized
and so on . . .
as we can see, the severity warning starts at LINE 13 but on LINE 12, a session cookie was not found..
so what i did, i create a file MY_Session.php and put @ symbol (@ used to suppress the error of the function)
Code:
@setcookie(
$this->sess_cookie,
$cookie_data,
$this->sess_length + time(),
$this->CI->config->item('cookie_path'),
$this->CI->config->item('cookie_domain'),
0 );
now, my feed controller works in IE..
in Firefox it runs smoothly even if i didnt put @ symbol in setcookie().
I think browser IE handles differently when executing the setcookie() function, im not so sure about this.
To Mirage and Tomcode,, thank you so much guys!
-aroman