Warning: session_start() [function.session-start]: Cannot send session cache limiter
Bonjour,
j'ai voulu modifier l'index d'un site déjà existant pour ajouter un code google analytic (j'utilise Filezilla). Quand je remplace l'ancien Index par le modifié et que je vais sur le site l'erreur suivante apparait:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/11/d223277694/htdocs/index.php:1) in /homepages/11/d223277694/htdocs/index.php on line 10
Mon code est:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
| <?php
//Include les classes
include 'class/annonceProprietaire.class.php';
include 'class/contenu.class.php';
include 'class/evaluation.class.php';
include 'class/utilisateur.class.php';
//Ouverture de session
session_start();
//Include les fichiers de configuration
include 'settings/mysql.php';
include 'settings/site.php';
//Fichiers de langues communs
include 'lang/'.SITE_LANG.'/kernel/menu_top.lang.php';
include 'lang/'.SITE_LANG.'/kernel/menu_principal.lang.php';
include 'lang/'.SITE_LANG.'/erreur.lang.php';
include 'lang/'.SITE_LANG.'/general.lang.php';
include 'lang/'.SITE_LANG.'/kernel/titres.lang.php';
//Incude les fonctions systeme
include 'php/mysql.inc.php';
include 'php/general.inc.php';
include 'php/verif_form.inc.php';
include 'php/image.inc.php';
include 'php/referencement.inc.php';
//Fichiers de configuration
include 'settings/menu_config.php';
include 'settings/redirections_droits.php';
//Login Logout
if(isset($_POST['email'])&&isset($_POST['motDePasse']))
{
$resultatLogin = login($_POST['email'],$_POST['motDePasse']);
}
if((isset($_GET['action']))&&($_GET['action']=="logout"))
{
$_SESSION = array();
session_destroy();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<?php
//Génération du title
if(isset($_GET['page']))
{
if($_GET['page']=='fiche')
{
include 'lang/'.SITE_LANG.'/fiche.lang.php';
include 'lang/'.SITE_LANG.'/kernel/menu_recherche.lang.php';
$mot_type_vehicule[1]=RECHERCHE_FOURGON;
$mot_type_vehicule[2]=RECHERCHE_CAPUCINE;
$mot_type_vehicule[3]=RECHERCHE_PROFILE;
$mot_type_vehicule[4]=RECHERCHE_INTEGRAL;
$mot_type_vehicule[5]=RECHERCHE_CELLULE;
$mot_type_vehicule[6]=RECHERCHE_CAMION;
$mot_type_vehicule[7]=RECHERCHE_CARAVANE;
$mot_energie[1]=FICHE_ESSENCE;
$mot_energie[2]=FICHE_DIESEL;
$mot_energie[3]=FICHE_GPL;
$temp_title = new annonceProprietaire();
$temp_title->initRecherche($_GET['immatriculation']);
$title = "Location ".$mot_type_vehicule[$temp_title->typeVehicule]." ".$temp_title->modele." ".$mot_energie[$temp_title->energie]." - contactNgo.com, location de camping-car de particulier à particulier !";
}
else
$title = $titre_page[$_GET['page']]." - contactNgo.com, location de camping-car de particulier à particulier !";
}
else
$title = "contactNgo.com, location de camping-car de particulier à particulier !";
echo "\t<title>".$title."</title>";
echo "\n\n\t<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />";
echo "\n\t<meta name='description' content='Pour louer un camping-car directement de particulier à particulier en France ou ailleurs, ayez le reflex ContactNgo location camping car' />";
echo "\n\t<meta name='verify-v1' content='FpRg5uaLwaYPd/vhxtPhCDTiF5TNeO23io620mhUI3Q=' />";
echo "\n\t<meta name='keywords' content='camping-car, location, mise en relation, particulier'";
$tab = explode(" ",$title);
foreach($tab as $keyword)
echo $keyword.",";
echo "' />";
echo "\n\n\t<link rel='icon' type='image/png' href='design/".SITE_DESIGN."/images/favicon.png' />";
/*if((isset($_SESSION['utilisateur']))&&($_SESSION['utilisateur']->email!=""))
{
if($_SESSION['utilisateur']->type==1)
echo "\t\t<link rel='stylesheet' type='text/css' media='screen' title='User Defined Style' href='design/".SITE_DESIGN."/sytlesheet/yellow.css' />";
if($_SESSION['utilisateur']->type==2)
echo "\t\t<link rel='stylesheet' type='text/css' media='screen' title='User Defined Style' href='design/".SITE_DESIGN."/sytlesheet/blue.css' />";
if($_SESSION['utilisateur']->type==3)
echo "\t\t<link rel='stylesheet' type='text/css' media='screen' title='User Defined Style' href='design/".SITE_DESIGN."/sytlesheet/red.css' />";
}
else*/
echo "\n\t<link rel='stylesheet' type='text/css' media='screen' title='User Defined Style' href='design/".SITE_DESIGN."/sytlesheet/green.css' />\n\n";
include 'settings/include_javascript.php';
?>
</head>
<body>
<?php
//echo "<body onscroll='javascript:sendScroll();'>";
//if(isset($_SESSION['scroll']))
// echo "\t<input type='hidden' id='scroll' value='".$_SESSION['scroll']."' />";
//else
// echo "\t<input type='hidden' id='scroll' value='0' />";
?>
<div id="centrage">
<div id="header">
<?php include 'kernel/modules/header.php'; ?>
</div>
<div id="menuPrincipal">
<?php include 'kernel/modules/menu_principal.php'; ?>
</div>
<div id="menu">
<?php include 'kernel/modules/menu.php'; ?>
</div>
<div id="page" class="page">
<?php include 'kernel/modules/page.php'; ?>
</div>
<div id="footer">
<?php include 'kernel/modules/footer.php'; ?>
</div>
<div id="avertissement_cookies">
<?php echo "\t\t\t".ERR_COOKIES; ?>
</div>
</div>
<script type="text/javascript">
showOnglets();
verifCookies();
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4847802-1");
pageTracker._trackPageview();
</script>
</body>
</html> |
Merci
PS: quand je veux modifier du texte, j'ai la même erreur