Home
Accueil
Downloads
Téléchargements
Forums
Forums
Your Account
Votre compte
Menu
· Accueil ·

· Communication ·
  · Forums
  · Messages privés
  · Contactez nous
  · Recommendez nous
  · Sondages
  · Les projets

· Nouvelles ·Stats
  · Sujets
  · Ecrire un article
  · Articles archivés
  · Articles RSS
  · Lettre de sécurité
  · Archive de lettres

· Téléchargements ·
  · Accueil
  · Nouveautés
  · Mises à jour
  · Thêmes

· Outils ·
  · Outils divers
  · Convertisseur de temps
  · Table de caractères
  · Générateur de boutons
  · Compresseur Javascript

· Documentation ·
  · Wiki
  · Questions/Réponses
  · Documents
  · Manuel PHP-Nuke
  · Manuel PHP
  · Manuel PEAR
  · Encyclopédies

· Liens ·
  · Nos liens
  · Nos fluxs RSS
  · Partenaires
  · Votre publicité
  · Sitemap
  · Mes bannières

· Infos ·
  · Rechercher
  · Votre compte
  · Liste des membres
  · Carte des membres
  · Top

· Divers ·
  · Météo
  · Galeries
  · Statistiques Phpnuke
  · MS Analysis


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.

Syndiquez notre contenu RSS, Atom, etc..
PHP-Nuke © 2007Reproduction interdite sans autorisation de ma part www.stefvar.com Copyright © 2008Thème iCGstation
Site français de la communauté PragmaMx