function.session-start (URENT SVP)

abelazi
WRInaute impliqué
WRInaute impliqué
 
Messages: 743
Inscription: 21 Fév 2006

function.session-start (URENT SVP)

Message le Sam Juin 13, 2009 19:51

Bonjour,

je viens d'installer l'ancien version peel. et ça me donner cette erreur veuillez SVP m'aider.

---------

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/monsite.com/httpdocs/index.php:1) in /home/httpd/vhosts/monsite.com/httpdocs/configuration.inc.php on line 66

Code: Tout sélectionner
<?php

/********************************************************************************
*****/
/*                                                                                   */
/*      PEEL                                                                         */
/*                                                                                   */
/*      Copyright (c) PEEL 2000 - 2007                                                 */
/*        email : info@peel.fr                                                          */
/*      web : http://www.peel.fr                                                        */
/*      développement d'applicatifs en php natif                                        */
/*                                                                                   */
/*      This program is free software; you can redistribute it and/or modify         */
/*      it under the terms of the GNU General Public License as published by         */
/*      the Free Software Foundation; either version 2 of the License, or            */
/*      (at your option) any later version.                                          */
/*                                                                                   */
/*      This program is distributed in the hope that it will be useful,              */
/*      but WITHOUT ANY WARRANTY; without even the implied warranty of               */
/*      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                */
/*      GNU General Public License for more details.                                 */
/*                                                                                   */
/*      You should have received a copy of the GNU General Public License            */
/*      along with this program; if not, write to the Free Software                  */
/*      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    */
/*                                                                                   */
/********************************************************************************
*****/

$dirroot                 = dirname(__FILE__);

$config                 = $dirroot."/lib/setup/info.inc.php";
   
if (file_exists($config)){include $config;}

if (empty($wwwroot) || empty($serveur_mysql) || empty($utilisateur_mysql) || empty($nom_de_la_base)) {

header("Location:installer.php");

} else {

$repertoire_images         = $wwwroot."/upload/";
$repertoire_achat         = $dirroot."/achat";
$repertoire_modele         = $dirroot."/modeles";
$repertoire_upload         = $dirroot."/upload";
$libdir                  = $dirroot."/lib";
$liste_mots                = $dirroot."/liste_mots.txt";
$my_max_file_size       = "102400"; # in bytes
$image_max_width        = "500";
$image_max_height       = "500";
$the_path               = $dirroot."/upload/";

$registered_types = array(
                                        "image/gif"                             => ".gif",
                                        "image/pjpeg"                           => ".jpg, .jpeg",
                                        "image/jpeg"                            => ".jpg, .jpeg",
                                        "text/richtext"                         => ".txt, .rtf",
                                        "application/pdf"                         => ".pdf",
                                        "application/msword"                    => ".doc",
                                        );

$allowed_types = array("image/gif","image/pjpeg","image/jpeg", "text/richtext", "application/pdf", "application/msword");

require($dirroot."/lib/class/caddie.php");

require($dirroot."/lib/class/mysql.php");

session_start();

session_register("SESSION");

/* Ouverture de l'objet mysql */
$db_host = $serveur_mysql;
   
$db_username = $utilisateur_mysql;
   
$db_password = $mot_de_passe_mysql;

$db_name = $nom_de_la_base;
   
$db_prefixe = "peel";

$db = new DBLayer($db_host, $db_username, $db_password, $db_name, $db_password);

// Initialisation de SESSION si nécessaire
if (! isset($_SESSION)) { $_SESSION = array();}

// Initialisation de l'objet caddie si nécessaire
if (! isset($_SESSION['caddie'])) {
    $_SESSION['caddie'] = new Caddie;
}

include($dirroot."/mysql.inc.php");

// Initialisation de SESSION pour la couleur
if (! empty($_GET['style']))

    { $_SESSION['style'] = $_GET['style'];
   
    } elseif
   
    (empty($_SESSION['style']))
   
    { $_SESSION['style'] = "bleu";
   
    }

// Recherche de la feuille de style

$stylefile = $wwwroot."/lib/css/".$_SESSION['style'].".css";
   
// Déclaration des fonctions

$fonctionsfile = $dirroot."/lib/fonctions/fonctions.php";

if (file_exists($fonctionsfile)){
require ($fonctionsfile);
}

}
?>


erestrebian
WRInaute occasionnel
WRInaute occasionnel
 
Messages: 472
Inscription: 15 Juin 2007

Re: function.session-start (URENT SVP)

Message le Sam Juin 13, 2009 20:10

tu dois avoir une demande d'initialisation de session dans index.php


Si vous avez aimé cette discussion, partagez-la sur vos réseaux sociaux préférés :

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités