Warning: Cannot add header information...in forums

3.9.20. Warning: Cannot add header information...in forums

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):

  1. 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') {
    
  2. 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.

 

Site Info v2.2.2

Last SeenLast Seen
Server TrafficServer Traffic
  • Total: 344,112,380
  • Today: 49,433
Server InfoServer Info
  • Dec 15, 2017
  • 09:33 pm PST
 
 

Daily Inspiration