Knowledge Base Navigation

Articles: 51 Categories: 8

KB Article: Warning: Cannot modify header information headers already sent by

Article:Warning: Cannot modify header information headers already sent by     Popular
Submitted By:Telli
Date Added:04-27-2004 6:13:59
Hits:7,580



Fix for this common error

Warning: Cannot modify header information headers already sent by... when viewing Forums

Fix by: lkrivelyov - [ Register or login to view links on this board. ]

Near the start of mainfile.php find:

42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
    if (extension_loaded('zlib')) {
        ob_end_clean();
        ob_start('ob_gzhandler');
    }
} else if (42 > '4.0') {


And change it too:

42 = phpversion();
if (42 >= '4.0.4pl1')
{
    ob_start('ob_gzhandler');
}else if (42 > '4.0') {

Current rating: 9.02 by 316 users
Please take one second and rate this article...

Not a Chance 12345678910 Absolutely

Please register or sign-in to post comments.


Jump to a selected article...