PHP Warning: Cannot modify header information PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Bart Dorlandt   
Monday, 12 January 2009 15:19

Hi,

today I figured out why I had PHP warnings in my error.log for apache.

The warning was:

[Mon Jan 12 14:10:39 2009] [error] [client 194.203.215.254] PHP Warning:  Cannot modify header information - headers already sent in /home/www/bamweb.nl/www/public_html/includes/joomla.php on line 4137, referer: http://www.bamweb.nl/content/view/226/4/

Aparently, this was due to the following command which I used to display the site a bit faster:

<?php flush(); ?>

Without this command I have no more warnings in my log. I think the people just have to wait a bit longer.

Last Updated on Friday, 13 February 2009 15:41
 


Related items: