You get errors of the form:
Warning: Cannot modify header information headers already sent |
when vieweing the forums. There are two solutions (see Warning: Cannot add header information...in forums):
Near the start of mainfile.php find:
42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; <productname>Windows</productname> NT 5.1),'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if (42 > '4.0') {
|
and change it to:
42 = phpversion();
if (42 >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') {
|
Add the following line to a .htaccess file (see Section 25.4) placed in your root PHP-Nuke directory:
PHP_FLAG output_buffering on |
or if you have access to php.ini, set:
output_buffering=on; |
See also Warning: Cannot modify header information on Forums and Cannot modify header information. To learn more about PHP output buffering, see Output Buffering with PHP and PHP Output Buffering tutorial.
|
|
| Last updated Sun Aug 7 21:14:12 CEST 2005 | Permalink: http://www.karakas-online.de/EN-Book/cannot-add-header-information-in-forums.html | All contents © 2004 Chris Karakas, Claudio Erba |