Warning: Cannot modify header information

Fermé
vickye Messages postés 9 Date d'inscription lundi 8 octobre 2007 Statut Membre Dernière intervention 6 mai 2009 - 11 oct. 2007 à 11:29
vickye Messages postés 9 Date d'inscription lundi 8 octobre 2007 Statut Membre Dernière intervention 6 mai 2009 - 11 oct. 2007 à 12:42
97Bonjour,
Voici les messages qui s'affichent sur mon site après un transfert de fichiers :

Warning: Cannot modify header information - headers already sent by
(output started at /home.10.2/aucochon/www/charcuterie/includes/filenames.php:187)
in /home.10.2/aucochon/www/charcuterie/includes/functions/general.php on line 1195

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (
output started at /home.10.2/aucochon/www/charcuterie/includes/filenames.php:187)
in /home.10.2/aucochon/www/charcuterie/includes/functions/sessions.php on line 97

Mon fichier :
function tep_session_name($name = '') {
if ($name != '') {
return session_name($name);
} else {
return session_name();
}
}
ligne 97 vide
function tep_session_close() {
if (function_exists('session_close')) {
return session_close();


Warning: Cannot modify header information - headers already sent by
(output started at /home.10.2/aucochon/www/charcuterie/includes/filenames.php:187)
in /home.10.2/aucochon/www/charcuterie/includes/functions/general.php on line 33

Mon fichier :

// Parse the data used in the html tags to ensure the tags will not break
function tep_parse_input_field_data($data, $parse) {
return strtr(trim($data), $parse);
}
ligne 33 vide
function tep_output_string($string, $translate = false, $protected = false) {
if ($protected == true) {
return htmlspecialchars($string);
Quelqu'un pourrait il m'aider j'y comprends rien.
Merci

3 réponses

Bonjour,
si t'as page s'apelle correctement, il se peut que tu aies 2 session start, je te conseille de mettre un @ devant.
Plus de warning :)
0
Dalida Messages postés 6728 Date d'inscription mardi 14 mai 2002 Statut Contributeur Dernière intervention 11 janvier 2016 922
11 oct. 2007 à 12:16
salut,

regarde cet article de la faq pour comprendre d'où vient ton erreur.
évite le '@' qui ne fait que masquer le message d'erreur mais ne résout pas le problème.
0
vickye Messages postés 9 Date d'inscription lundi 8 octobre 2007 Statut Membre Dernière intervention 6 mai 2009
11 oct. 2007 à 12:42
Merci pour le lien mais j'y comprends pas grand chose à part que j'ai du oublié de modifier un fichier.
Je voulais juste rajouter un lien dans ma box
j'ai donc créer un nouveau fichier en enregistrant un fichier existant dans la meme boxe
www/charcuterie/jambon-espagnol.php en jambon-conserver.php à l'intérieur j'ai modifié :
require('includes/application_top.php');


require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_JAMBON_CONSERVER);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_JAMBON_CONSERVER));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

j'ai ajouté dans www/charcuterie/include/filenames.php :

define('FILENAME_PARTENAIRES', 'aucochon-gourmet.php');

define('FILENAME_PDF_CATALOGUE', 'pdf_catalogue_info.php'); // PDF Catalog v.1.51

define('FILENAME_PDF_DEFINE_INTRO','pdf_define_intro.php'); // PDF Catalog v.1.55

define('FILENAME_JAMBON_CONSERVER', 'jambon-conserver.php');

j'ai modifié un autre fichier dans www/charcuterie/include/boxe/aucochongourmet.php :
$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SAUCISSON) . '">' . BOX_AUCOCHONGOURMET_SAUCISSON . '</a>');

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_JAMBON_ESPAGNOL) . '">' . BOX_AUCOCHONGOURMET_JAMBON_ESPAGNOL . '</a>');

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_JAMBON_CONSERVER) . '">' . BOX_AUCOCHONGOURMET_JAMBON_CONSERVER . '</a>');



new infoBox($info_box_contents);
?>

</td>

</tr>

<!-- manufacturer_info_eof //--

?>

j'ai modifié également dans j'ai modifié un autre fichier dans www/charcuterie/include/languages/french.php

// aucochongourmet box text in includes/boxes/aucochongourmet.php
define('BOX_HEADING_AUCOCHONGOURMET', 'Conseils Charcuterie');
define('BOX_AUCOCHONGOURMET_SAUCISSON', 'Saucissons : bien choisir');
define('BOX_AUCOCHONGOURMET_JAMBON_ESPAGNOL', 'Jambons : Bien couper');
define('BOX_AUCOCHONGOURMET_JAMBON_CONSERVER', 'Bien conserver');

// partenaires box text in includes/boxes/partenaires.php puis enfin créer un nouveau

et enfin créer un nouveau dans www/charcuterie/include/languages/french/jambon-conserver.php
0