Page 1 of 1

[SOLVED] headers already sent

Posted: Mon May 02, 2011 8:01 am
by chrisbar
When opening my site, the follwing is shown in the head of my page. I have had this problem once more after upgrading the the latest version of CMSMS (1.9.4). Yesterday I tried to get more memory (needed to intall new updates, but it did not work. I have set the config.php back to the content it had before yesterday. Now header information is shown.
Any idea?


Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 264

Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 265

Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 266

Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 267

Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 268

Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/index.php on line 377


The index.php has the following lines in it starting at line 263:

// Here we adjust headers for non cachable pages
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

Re: headers already sent

Posted: Tue May 03, 2011 8:34 am
by chrisbar
Solved the problem. I replaced the config.php with the config.php of my backup. Everything works again. The difference is in the memory limt. In the current config.php this is set to ' '. In the former config.php this was set tp '32M'

Could this be the problem?

Kind regards
Chris