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; Windows 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.
|
Help us make a better PHP-Nuke HOWTO!Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum! Chris Karakas, Maintainer PHP-Nuke HOWTO |