Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: SCindustink
New Today: 0
New Yesterday: 2
Overall: 5005

People Online:
Visitors: 24
Members: 0
Total: 24
 
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; 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') {
    
  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.


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

Great hosting I can recommend

This site is hosted with Lunar Pages and I am very happy with their service, support and the hosting packages they provide.

CLick on the image below for all the details.

Lunarpages.com Web Hosting

 
This site is
best viewed with:

Get Firefox now
Mozilla Firefox

Need a better mail client? Get Firefox now
Use Mozilla Thunderbird
 
Weather Forcast
Brisbane Today
Forecast
Select City:
 
Whirlpool.net.au
Currently there is a problem with headlines from this site
 
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.071 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::