IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Session_Start() et header already sent


Sujet :

Langage PHP

  1. #1
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut Session_Start() et header already sent
    Bonjour,

    J'ai le même problème que les autres personnes avec l'un des espaces du site web de notre société:
    - Warning: session_start(): Cannot send session cookie - headers already sent by
    - Warning: session_start(): Cannot send session cache limiter - headers already sent
    - Warning: Cannot modify header information - headers already sent by
    Je ne suis pas webmaster et ne possède donc aucune connaissance en PHP, le site a été développé par l'un de nos anciens prestataires qui aujourd'hui est injoignable.

    J'ai essayé toutes les solutions proposées dans ce forum et les autres, mais malheureusement aucune n'a fonctionné:
    - Réencodage du fichier en UTF-8 sans BOM
    - Placement du session_start en début de fichier
    - Suppression des éventuels espaces invisibles
    - Création du dossier sessions à la racine du site
    - ob_start et ob_flush

    Voici le code de la page accueil.php:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    <?php
     session_start();
     set_time_limit(0);
     
     $_page->initialiseFilAriane();
     
     require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/EXF/formateur.php');
     if (isset($_POST['formateur_id']) && isset($_POST['formateur_passe']))
     {
      $_formateur = Formateur::getFormateurPourPseudoEtPasse($_POST['formateur_id'], $_POST['formateur_passe']);
      $_formateur->enregistreSession();
     }
     else $_formateur = Formateur::getFormateurPourSession();
     
     if (!$_formateur->existe())
     {
      header('Location: '.SITE_RACINE);
      exit();
     }
     
     require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/EXF/formation.php');
     if ($_formateur->estAdministrateur())
     {
      $_formations = Formation::getFormationTitresParFormationCategories();
      if (isset($_POST['generation_pdf']))
      {
       require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/EXF/pdf2.php');
       EXFPdf2::genereTousLesPdf(Formation::getFormationsVisiblesParFormationCategories());
      }
     }
     else $_formations = Formation::getFormationTitresParFormationCategoriesPourFormateur($_formateur);
    ?>
    Merci de votre aide ! :-)

  2. #2
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Bonjour, les informations que vous nous donnez semble incomplète.

    En effet, au début de la page vous avez un objet instancié, mais on ne sait pas comment il est arrivé là

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
     $_page->initialiseFilAriane();
    Cela veut dire plusieurs chose, mais le plus probable est que votre page accueill.php est appelé au travers d'une autre page PHP, j'imagine index.php, peux-t-on vérifier de ce côté et éventuellement nous montrer le code de index.php

  3. #3
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Bonsoir. Je n'ai pas de page index.php. Mais vu que le message dit :

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 2
    peut-être que la page appelante est article_groupe.php dont voici le code ? :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    <?php
    	// v. 20110707
    	// LSL (c) Tous droits réservés
     
    	require_once('langue.php');
     
    	class ArticleGroupe
    	{
    		private $id;
    		private $client;
    		private $langue;
    		private $titre;
    		private $description;
     
    		private $nombreArticles = 0;
     
    		function ArticleGroupe($id = null, $client = null, $langue = null, $titre = null, $description = null)
    		{
    			$this->id = $id;
    			$this->client = $client;
    			$this->langue = $langue;
    			$this->titre = $titre;
    			$this->description = $description;
     
    			if ($this->langue == null)
    				$this->langue = new Langue();
    			if ($this->client == null)
    				$this->client = new Client(null);
    		}
    		public function getId() { return $this->id; }
    		public function getClient() { return $this->client; }
    		public function getLangue() { return $this->langue; }
    		public function setLangue($langue) { $this->langue = $langue; }
    		public function getTitre() { return $this->titre; }
    		public function setTitre($titre) { $this->titre = $titre; }
    		public function getDescription() { return $this->description; }
    		public function setDescription($description) { $this->description = $description; }
    		public function getNombreArticles() { return $this->nombreArticles; }
    		public function setNombreArticles($nombreArticles) { $this->nombreArticles = $nombreArticles; }
     
    		public function existe() { return $this->id != null; }
    		public function enregistre()
    		{
    			if ($this->existe())
    			{
    				$sql = 'UPDATE '.MYSQL_PREFIXE.'article_groupe SET '.
    						'langue_id = '.$this->langue->getId().', '.
    						'article_groupe_titre = \''.addslashes($this->titre).'\', '.
    						'article_groupe_description = \''.addslashes($this->description).'\' '.
    					'WHERE article_groupe_id = '.$this->id;
    				return mysql_query($sql);
    			}
    			else
    			{
    				$sql = 'INSERT INTO '.MYSQL_PREFIXE.'article_groupe('.
    						'client_id, '.
    						'langue_id, '.
    						'article_groupe_titre, '.
    						'article_groupe_description'.
    					') VALUES ('.
    						$this->client->getId().', '.
    						$this->langue->getId().', '.
    						'\''.addslashes($this->titre).'\', '.
    						'\''.addslashes($this->description).'\''.
    					')';
    				if (mysql_query($sql))
    				{
    					$this->id = mysql_insert_id();
    					return true;
    				}
    			}
    			return false;
    		}
     
     
    		public function getArticleGroupeParId_et_Client($articleGroupeId, $client)
    		{
    			$sql = 'SELECT langue_id, article_groupe_titre, article_groupe_description, COUNT(article_id) AS total '.
    				'FROM '.MYSQL_PREFIXE.'article_groupe '.
    				'LEFT JOIN '.MYSQL_PREFIXE.'article ON '.MYSQL_PREFIXE.'article.article_groupe_id = '.MYSQL_PREFIXE.'article_groupe.article_groupe_id '.
    				'WHERE '.MYSQL_PREFIXE.'article_groupe.article_groupe_id = '.$articleGroupeId.' '.
    					'AND '.MYSQL_PREFIXE.'article_groupe.client_id = '.$client->getId().' '.
    				'GROUP BY '.MYSQL_PREFIXE.'article_groupe.article_groupe_id';
    			if ($requete = mysql_query($sql))
    				if ($resultat = mysql_fetch_object($requete))
    				{
    					$articleGroupe = new ArticleGroupe($articleGroupeId, $client, new Langue(intval($resultat->langue_id)), $resultat->article_groupe_titre, $resultat->article_groupe_description);
    					$articleGroupe->setNombreArticles(intval($resultat->total));
    					return $articleGroupe;
    				}
    			return new ArticleGroupe();
    		}
    		public function getArticleGroupesParClient($client)
    		{
    			$tab = array();
    			$sql = 'SELECT article_groupe_id, article_groupe_titre, '.MYSQL_PREFIXE.'langue.langue_id, langue_nom, langue_icone '.
    				'FROM '.MYSQL_PREFIXE.'article_groupe '.
    					'INNER JOIN '.MYSQL_PREFIXE.'langue ON '.MYSQL_PREFIXE.'article_groupe.langue_id = '.MYSQL_PREFIXE.'langue.langue_id '.
    				'WHERE client_id = '.$client->getId();
    			if ($requete = mysql_query($sql))
    				while ($resultat = mysql_fetch_object($requete))
    					$tab[] = new ArticleGroupe(intval($resultat->article_groupe_id), null, new Langue(intval($resultat->langue_id), $resultat->langue_nom, $resultat->langue_icone), $resultat->article_groupe_titre);
    			return $tab;
    		}
    	}
    ?>
    En tout cas je vous remercie beaucoup de votre aide
    Manu.

  4. #4
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Oki, on continue l'exploration alors :

    Pouvez-vous faire dans la page acceuil.php Egalement me mettre le contenu de langue.php ?

    Vu le code SQL qui est assez vieux, auriez-vous mis à jour votre PHP de ces jours-ci ?

  5. #5
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    ça me renvoie :
    Parse error: syntax error, unexpected '$_page' (T_VARIABLE) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 6
    Effectivement notre hébergeur HOSTPAPA a mis à jour le PHP la semaine dernière.

    Je n'ai pas trouvé le fichier langue.php. Je te l'envoie dès que je le trouve.

  6. #6
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    Salut,

    je dis ça, mais le dev qui a utilisé addslashes() comme fonction d'échappement des données MySQL doit être en fuite maintenant.
    Pour échapper correctement les données, il faut utiliser mysql_real_escape_string().
    Et pour finir, les fonctions mysql_xxx() vont passer à la trappe, il faudrait reprendre le code en les remplaçant soit par mysqli_xxx(), soit par PDO.

    Pour éviter des problèmes de ce genre, il faut aussi penser à ne jamais utiliser la balise fermante ?> en fin de fichier .php

  7. #7
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Citation Envoyé par rawsrc Voir le message
    Et pour finir, les fonctions mysql_xxx() vont passer à la trappe, il faudrait reprendre le code en les remplaçant soit par mysqli_xxx(), soit par PDO.
    Chaque chose en son temps, ne le faisons pas paniquer trop vite, sa solution doit-être encore viable quelque temps


    au fait as tu mis un point virgule après le var_dump ?


  8. #8
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Oui, mais je l'ai enlevé illico car ça me provoque ça :
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 2

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 2
    object(Page)#15 (16) { ["id":"Page":private]=> int(5) ["site":"Page":private]=> object(Site)#2 (15) { ["id":"Site":private]=> int(1) ["client":"Site":private]=> object(Client)#3 (13) { ["id":"Client":private]=> int(1) ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> object(Langue)#4 (4) { ["id":"Langue":private]=> int(7) ["nom":"Langue":private]=> NULL ["icone":"Langue":private]=> NULL ["codeIso639_1":"Langue":private]=> string(2) "fr" } ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> object(SiteType)#5 (5) { ["id":"SiteType":private]=> NULL ["client":"SiteType":private]=> NULL ["nom":"SiteType":private]=> NULL ["controleur":"SiteType":private]=> string(17) "EXF.php" ["vue":"SiteType":private]=> string(17) "EXF.php" } ["siteDesign":"Site":private]=> object(SiteDesign)#6 (10) { ["id":"SiteDesign":private]=> NULL ["bordureCouleur":"SiteDesign":private]=> NULL ["texteCouleur":"SiteDesign":private]=> NULL ["liensCouleur":"SiteDesign":private]=> NULL ["fondCouleur":"SiteDesign":private]=> NULL ["pageFondCouleur":"SiteDesign":private]=> NULL ["favicon":"SiteDesign":private]=> string(13) "favicon-1.png" ["logoUrl":"SiteDesign":private]=> NULL ["logoLargeur":"SiteDesign":private]=> string(1) "0" ["logoHauteur":"SiteDesign":private]=> string(1) "0" } ["pageAccueil":"Site":private]=> object(Page)#7 (16) { ["id":"Page":private]=> int(1) ["site":"Page":private]=> object(Site)#8 (15) { ["id":"Site":private]=> NULL ["client":"Site":private]=> object(Client)#9 (13) { ["id":"Client":private]=> NULL ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> NULL ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> NULL ["siteDesign":"Site":private]=> NULL ["pageAccueil":"Site":private]=> NULL ["titre":"Site":private]=> NULL ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> NULL ["bodyBas":"Site":private]=> NULL ["piedDePage":"Site":private]=> NULL ["erreurHtml":"Site":private]=> NULL ["menuHautHtml":"Site":private]=> NULL ["menuBasHtml":"Site":private]=> NULL } ["pageStatut":"Page":private]=> object(PageStatut)#10 (3) { ["id":"PageStatut":private]=> NULL ["nom":"PageStatut":private]=> NULL ["icone":"PageStatut":private]=> NULL } ["pageParente":"Page":private]=> NULL ["pageType":"Page":private]=> object(PageType)#11 (7) { ["id":"PageType":private]=> int(1) ["client":"PageType":private]=> NULL ["nom":"PageType":private]=> NULL ["controleur":"PageType":private]=> NULL ["vue":"PageType":private]=> NULL ["champIntitule1":"PageType":private]=> NULL ["champIntitule2":"PageType":private]=> NULL } ["titre":"Page":private]=> NULL ["url":"Page":private]=> string(43) "Specialiste_de_la_formation_professionnelle" ["description":"Page":private]=> NULL ["motsClefs":"Page":private]=> NULL ["html":"Page":private]=> NULL ["diaporama":"Page":private]=> NULL ["pageTypeChampValeur1":"Page":private]=> NULL ["pageTypeChampValeur2":"Page":private]=> NULL ["titreH1":"Page":private]=> NULL ["filAriane":"Page":private]=> array(0) { } ["pagesJavascript":"Page":private]=> array(0) { } } ["titre":"Site":private]=> string(13) "EXF" ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> string(0) "" ["bodyBas":"Site":private]=> string(0) "" ["piedDePage":"Site":private]=> string(0) "" ["erreurHtml":"Site":private]=> string(554) "

  9. #9
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Parfait c'est ce que je voulais.

    Alors cette variable est un objet qui est déclaré dans un autre fichier que accueil.php.
    Ce qui veut dire que avant d'afficher accueil.php il y a passage de données et qu'il faut trouver comment est agencé ton projet, si cela tombe ton session_start() est déjà déclaré.

    peux-tu faire ceci et me dire ce que tu vois.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    <?php
    var_dump($_SESSION);
     session_start();
     set_time_limit(0);

  10. #10
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Je viens de remplacer addslashes par mysqlrealescape et ai supprimé les ?> en fin de fichier mais toujours rien :/

  11. #11
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    @MaitrePylos

    ça donne ceci :

    Notice: Undefined variable: _SESSION in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 2
    NULL
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 3

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 3

    Warning: Cannot modify header information - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/accueil.php on line 19

  12. #12
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    voci le langue.php:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    <?php
    	// v. 20110707
    	// LSL (c) Tous droits réservés
     
    	class Langue
    	{
    		private $id;
    		private $nom;
    		private $icone;
    		private $codeIso639_1;
     
    		function Langue($id = null, $nom = null, $icone = null, $codeIso639_1 = null)
    		{
    			$this->id = $id;
    			$this->nom = $nom;
    			$this->icone = $icone;
    			$this->codeIso639_1 = $codeIso639_1;
    		}
    		public function getId() { return $this->id; }
    		public function getNom() { return $this->nom; }
    		public function getIcone() { return $this->icone; }
    		public function getCodeIso639_1() { return $this->codeIso639_1; }
     
    		public function getIconeChemin() { return LSL_WEBSITE_RACINE.'images/icones/drapeaux/'.$this->icone; }
    		public function getIconeHtml() { return '<img src="'.$this->getIconeChemin().'" alt="'.$this->nom.'" title="'.$this->nom.'" width="16" height="11" />'; }
     
    		public function getLangues()
    		{
    			$tab = array();
    			$sql = 'SELECT langue_id, langue_nom, langue_icone '.
    				'FROM '.MYSQL_PREFIXE.'langue '.
    				'ORDER BY langue_nom ASC';
    			if ($requete = mysql_query($sql))
    				while ($resultat = mysql_fetch_object($requete))
    					$tab[] = new Langue(intval($resultat->langue_id), $resultat->langue_nom, $resultat->langue_icone);
    			return $tab;
    		}
    	}
    ?>

  13. #13
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Citation Envoyé par ElManu92 Voir le message
    Je viens de remplacer addslashes par mysqlrealescape et ai supprimé les ?> en fin de fichier mais toujours rien :/

    On ne t'as pas demandé de le faire et cela ne sert à rien, on pourra discuter de cette façon de coder, mais ici on n'est pas là pour critiquer ton prestataire.
    Remet comme cela était, tu ne dois pas toucher au code, on veut juste régler un souci.
    donc on va trouver ce qui se passe et puis on verra pour le reste, si il y a des raisons de voir....ok

  14. #14
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    @MaitrePylos
    Lui dire de dé-corriger son code alors que ce changement ne fait que l'améliorer, c'est pas très avisé.
    Au moins sur le code dont on a connaissance, on vire les énormités... C'est toujours mieux que de tout laisser passer.

    @ElManu92
    Pourrais-tu poster le code source de /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php

  15. #15
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Citation Envoyé par rawsrc Voir le message
    @MaitrePylos
    Lui dire de dé-corriger son code alors que ce changement ne fait que l'améliorer, c'est pas très avisé.
    Au moins sur le code dont on a connaissance, on vire les énormités... C'est toujours mieux que de tout laisser passer.
    Oui, sauf que nous ne sommes pas le prestataire, nous ne connaissons pas ses connaissances en PHP, nous ne savons pas si son appli est en prod.
    Tu m'excuseras, mais je trouve un peu cavalier de lui faire des modif dans un code initier par un prestataire....;tu ne connais pas les éventuelles effet de bord.
    On n'est pas ici pour réécrire son appli mais pour régler son souci.

    Donc je persiste, on n'as pas à toucher son code, surtout si on ne peut vérifier ce qu'il fait.

    D'autant que mettre mysql_real_escape, ne règlera pas son souci, puisque la fonction est déprécié....CQFD

  16. #16
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA
    Inscrit en
    Juin 2005
    Messages
    5 496
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA
    Secteur : Service public

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 496
    Points : 12 596
    Points
    12 596
    Par défaut
    Je reste persuadé que le fichier est imbriqué, j'ai besoin de voir la structure....cela est-il possible ?

  17. #17
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    Recrée un fichier article_groupe.php (utf8, sans BOM dans notepad++) et mets y dedans :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    <?php
    // v. 20110707
    // LSL (c) Tous droits réservés
     
    require_once('langue.php');
     
    class ArticleGroupe
    {
        private $id;
        private $client;
        private $langue;
        private $titre;
        private $description;
     
        private $nombreArticles = 0;
     
        function ArticleGroupe($id = null, $client = null, $langue = null, $titre = null, $description = null)
        {
            $this->id = $id;
            $this->client = $client;
            $this->langue = $langue;
            $this->titre = $titre;
            $this->description = $description;
     
            if ($this->langue == null)
                $this->langue = new Langue();
            if ($this->client == null)
                $this->client = new Client(null);
        }
        public function getId() { return $this->id; }
        public function getClient() { return $this->client; }
        public function getLangue() { return $this->langue; }
        public function setLangue($langue) { $this->langue = $langue; }
        public function getTitre() { return $this->titre; }
        public function setTitre($titre) { $this->titre = $titre; }
        public function getDescription() { return $this->description; }
        public function setDescription($description) { $this->description = $description; }
        public function getNombreArticles() { return $this->nombreArticles; }
        public function setNombreArticles($nombreArticles) { $this->nombreArticles = $nombreArticles; }
     
        public function existe() { return $this->id != null; }
        public function enregistre()
        {
            if ($this->existe())
            {
                $sql = 'UPDATE '.MYSQL_PREFIXE.'article_groupe SET '.
                'langue_id = '.$this->langue->getId().', '.
                'article_groupe_titre = \''.addslashes($this->titre).'\', '.
                'article_groupe_description = \''.addslashes($this->description).'\' '.
                'WHERE article_groupe_id = '.$this->id;
                return mysql_query($sql);
            }
            else
            {
                $sql = 'INSERT INTO '.MYSQL_PREFIXE.'article_groupe('.
                'client_id, '.
                'langue_id, '.
                'article_groupe_titre, '.
                'article_groupe_description'.
                ') VALUES ('.
                $this->client->getId().', '.
                $this->langue->getId().', '.
                '\''.addslashes($this->titre).'\', '.
                '\''.addslashes($this->description).'\''.
                ')';
                if (mysql_query($sql))
                {
                    $this->id = mysql_insert_id();
                    return true;
                }
            }
            return false;
        }
     
     
        public function getArticleGroupeParId_et_Client($articleGroupeId, $client)
        {
            $sql = 'SELECT langue_id, article_groupe_titre, article_groupe_description, COUNT(article_id) AS total '.
            'FROM '.MYSQL_PREFIXE.'article_groupe '.
            'LEFT JOIN '.MYSQL_PREFIXE.'article ON '.MYSQL_PREFIXE.'article.article_groupe_id = '.MYSQL_PREFIXE.'article_groupe.article_groupe_id '.
            'WHERE '.MYSQL_PREFIXE.'article_groupe.article_groupe_id = '.$articleGroupeId.' '.
            'AND '.MYSQL_PREFIXE.'article_groupe.client_id = '.$client->getId().' '.
            'GROUP BY '.MYSQL_PREFIXE.'article_groupe.article_groupe_id';
            if ($requete = mysql_query($sql))
                if ($resultat = mysql_fetch_object($requete))
                {
                    $articleGroupe = new ArticleGroupe($articleGroupeId, $client, new Langue(intval($resultat->langue_id)), $resultat->article_groupe_titre, $resultat->article_groupe_description);
                    $articleGroupe->setNombreArticles(intval($resultat->total));
                    return $articleGroupe;
                }
     
            return new ArticleGroupe();
        }
        public function getArticleGroupesParClient($client)
        {
            $tab = array();
            $sql = 'SELECT article_groupe_id, article_groupe_titre, '.MYSQL_PREFIXE.'langue.langue_id, langue_nom, langue_icone '.
            'FROM '.MYSQL_PREFIXE.'article_groupe '.
            'INNER JOIN '.MYSQL_PREFIXE.'langue ON '.MYSQL_PREFIXE.'article_groupe.langue_id = '.MYSQL_PREFIXE.'langue.langue_id '.
            'WHERE client_id = '.$client->getId();
            if ($requete = mysql_query($sql))
                while ($resultat = mysql_fetch_object($requete))
                    $tab[] = new ArticleGroupe(intval($resultat->article_groupe_id), null, new Langue(intval($resultat->langue_id), $resultat->langue_nom, $resultat->langue_icone), $resultat->article_groupe_titre);
            return $tab;
        }
    }

  18. #18
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Bonsoir, et tout d'abord merci à tous pour l'aide que vous m'apportez. Désolé de ne pas vous avoir répondu plus tôt mais j'avais un autre pb à résoudre avec mon PC qui m'a empêché de me connecter avant. Bien, sinon il y a de l'avancement. Je m'explique :

    Le problème sur la page accueil.php semble résolu suite à la suppression (ou plutôt mise en commentaire) de ces deux lignes sur accueil.php :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    //var_dump($_SESSION);
    //session_start();
    Pour ce qui est de la page article_groupe, que je mette le code ci-dessus ou le laisse tel quel cela ne semble pas altérer ce "fonctionnement". J'arrive donc maintenant à me connecter à la session de notre espace formateur et vois le menu proposé normalement.

    Maintenant je suis bien incapable d'expliquer pourquoi brusquement ça marche suite à la suppression de session_start().

    PAR CONTRE, le problème se retrouve déplacé dans les items de menu. Je jette un coup d'oeil et vous tiens au courant.

    Merci et bonne soirée.


    EDIT :

    Bien, le premier menu qui me pose problème a pour page gestion_formation_sessions.php. Ce fichier est bien encodé en UTF8 sans BOM et session_start() est bien au début, et j'ai réécrit le <?php pour être sûr de supprimer tout éventuel espace invisible.

    J'obtiens les messages d'erreur suivants :

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/gestion_formation_sessions.php on line 2

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/gestion_formation_sessions.php on line 2

    Warning: Cannot modify header information - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/gestion_formation_sessions.php on line 14
    La page appelante semble donc toujours être article_groupe.php
    Voici son code (gestion_formation_sessions.php) :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    <?php
    	session_start();
    	set_time_limit(0);
    	require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/EXF/formateur.php');
    	require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/EXF/formation_session.php');
    	require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/fichier.php');
    	$_page->addPageJavascript(SITE_RACINE.'ressources/javascript/calendrier/calendrier.js');
     
    	$_formateur = Formateur::getFormateurPourSession();
    	$_page->initialiseFilAriane();
     
    	if (!$_formateur->existe())
    	{
    		header('Location: '.SITE_RACINE);
    		exit();
    	}
     
    	require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/formulaire.php');
    	$formulaire = new Formulaire('form_formation_session', isset($_POST['formation_session_enregistrement']) || isset($_POST['formation_session_enregistrement_courriel']));
     
    	$_toutAfficher = ($_formateur->estAdministrateur() && isset($_GET['calendrier']) && $_GET['calendrier'] == 'general');
    	$_formateurDuCalendrier = $_formateur;
    	if (isset($_GET['formateur']))
    		$_formateurDuCalendrier = Formateur::getFormateurPourId(intval($_GET['formateur']));
    	else $_formateurDuCalendrier = $_formateur;
    	if (isset($_POST['formation_session_id']))
    	{
    		$_formationSession = FormationSession::getFormationSessionsPourId(intval($_POST['formation_session_id']));
    		if (isset($_POST['formation_session_suppression']))
    		{
    			if ($_formationSession->supprime())
    				$formulaire->addMessageValidation('La session de formation a été supprimée.');
    			else $formulaire->addMessageErreur('La session de formation n\'a pas été supprimée.');
    		}
    	}
    	elseif (isset($_GET['formation_session']))
    		$_formationSession = FormationSession::getFormationSessionsPourId(intval($_GET['formation_session']));
    	else
    	{
    		$_formationSession = new FormationSession();
    		if (isset($_GET['date_debut']))
    		{
    			$_formationSession->setDateDebut($_GET['date_debut']);
    			$_formationSession->setDateFin($_GET['date_debut']);
    		}
    		else
    		{
    			$_formationSession->setDateDebut(date('Y-m-d'));
    			$_formationSession->setDateFin(date('Y-m-d'));
    		}
    	}
     
    	/*if (!$_formateur->estAdministrateur() && !$_formationSession->existe())
    	{
    		header('Location: '.SITE_RACINE);
    		exit();
    	}*/
     
    	$formulaire->setChamp('formation_session_date_debut', 'Date de début', $_formationSession->getDateDebut(), true);
    	$formulaire->setChamp('formation_session_date_fin', 'Date de fin', $_formationSession->getDateFin(), true);
    	$formulaire->setChamp('formation_session_commentaire', 'Commentaire', $_formationSession->getCommentaire(), false);
    	$formulaire->setChamp('formation_session_bon_de_commande', 'Bon de commande', $_formationSession->getBonDeCommande(), false);
    	$formulaire->setChamp('formation_session_feuille_de_presence', 'Feuille de présence', $_formationSession->getFeuilleDePresence(), false);
    	$formulaire->setChamp('formation_session_feuille_evaluation', 'Feuille d\'évaluation', $_formationSession->getFeuilleEvaluation(), false);
    	$formulaire->setChamp('formation_session_plan_cours', 'Plan de cours', $_formationSession->getPlanCours(), false);
    	$formulaire->setChamp('formation_session_support', 'Support', $_formationSession->getSupport(), false);
    	$formulaire->setChamp('formation_session_type', 'Type', $_formationSession->getType(), false);
    	$formulaire->setChamp('formation_session_adresse', 'Adresse', $_formationSession->getAdresse(), false);
    	$formulaire->setChamp('formation_session_reference', 'Référence', $_formationSession->getReference(), false);
    	$formulaire->setChamp('formation_session_societe', 'Société', $_formationSession->getSociete(), false);
    	$formulaire->setChamp('formation_session_nombre_stagiaires', 'Nombre de stagiaires', $_formationSession->getNombreStagiaires(), false, Formulaire::$FORMULAIRE_FILTRE_ENTIER);
    	$formulaire->initialiseChamps('post');
    	if ($formulaire->estValide())
    	{
    		if ($formulaire->getValeur('formation_session_date_debut') > $formulaire->getValeur('formation_session_date_fin'))
    			$formulaire->addMessageErreur('Dates invalides.');
    		else
    		{
    			$_formationSession->setFormateur($_formateurDuCalendrier);
    			$_formationSession->setDateDebut($formulaire->getValeur('formation_session_date_debut'));
    			$_formationSession->setDateFin($formulaire->getValeur('formation_session_date_fin'));
    			$_formationSession->setCommentaire($formulaire->getValeur('formation_session_commentaire'));
    			$_formationSession->setBonDeCommande((isset($_POST['formation_session_bon_de_commande']) && $formulaire->getValeur('formation_session_bon_de_commande') == '1') ? true : false);
    			$_formationSession->setFeuilleDePresence((isset($_POST['formation_session_feuille_de_presence']) && $formulaire->getValeur('formation_session_feuille_de_presence') == '1') ? true : false);
    			$_formationSession->setFeuilleEvaluation((isset($_POST['formation_session_feuille_evaluation']) && $formulaire->getValeur('formation_session_feuille_evaluation') == '1') ? true : false);
    			$_formationSession->setPlanCours((isset($_POST['formation_session_plan_cours']) && $formulaire->getValeur('formation_session_plan_cours') == '1') ? true : false);
    			$_formationSession->setSupport((isset($_POST['formation_session_support']) && $formulaire->getValeur('formation_session_support') == '1') ? true : false);
    			$_formationSession->setType(isset($_POST['formation_session_type']) ? intval($_POST['formation_session_type']) : 0);
    			$_formationSession->setAdresse($formulaire->getValeur('formation_session_adresse'));
    			$_formationSession->setReference($formulaire->getValeur('formation_session_reference'));
    			$_formationSession->setSociete($formulaire->getValeur('formation_session_societe'));
    			$_formationSession->setNombreStagiaires(intval($formulaire->getValeur('formation_session_nombre_stagiaires')));
    			if (isset($_POST['suppr_fichier_bon_de_commande']) && ($_POST['suppr_fichier_bon_de_commande'] == '1'))
    			{
    				unlink(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierBonDeCommande());
    				$_formationSession->setFichierBonDeCommande(null);
    			}
    			if (isset($_POST['suppr_fichier_feuille_de_presence']) && ($_POST['suppr_fichier_feuille_de_presence'] == '1'))
    			{
    				unlink(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierFeuilleDePresence());
    				$_formationSession->setFichierFeuilleDePresence(null);
    			}
    			if (isset($_POST['suppr_fichier_feuille_evaluation']) && ($_POST['suppr_fichier_feuille_evaluation'] == '1'))
    			{
    				unlink(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierFeuilleEvaluation());
    				$_formationSession->setFichierFeuilleEvaluation(null);
    			}
    			if (isset($_POST['suppr_fichier_plan_cours']) && ($_POST['suppr_fichier_plan_cours'] == '1'))
    			{
    				unlink(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierPlanCours());
    				$_formationSession->setFichierPlanCours(null);
    			}
    			if ($_formationSession->enregistre())
    			{
    				$formulaire->addMessageValidation('La session de formation a été enregistrée.');
    				//<-- Enregistrement des fichiers
    				$reenregistre = false;
    				if ($_FILES['formation_session_fichier_bon_de_commande']['size'] > 0)
    				{
    					$fichier = new Fichier($_FILES['formation_session_fichier_bon_de_commande']['tmp_name']);
    					$nomFichier = 'bon_de_commande-'.$_formationSession->getId().'.'.Fichier::getExtension($_FILES['formation_session_fichier_bon_de_commande']['name']);
    					$fichier->deplace(SITE_DOSSIER.'documents/formations/'.$nomFichier);
    					$_formationSession->setFichierBonDeCommande($nomFichier);
    					$reenregistre = true;
    				}
    				if ($_FILES['formation_session_fichier_feuille_de_presence']['size'] > 0)
    				{
    					$fichier = new Fichier($_FILES['formation_session_fichier_feuille_de_presence']['tmp_name']);
    					$nomFichier = 'feuille_de_presence-'.$_formationSession->getId().'.'.Fichier::getExtension($_FILES['formation_session_fichier_feuille_de_presence']['name']);
    					$fichier->deplace(SITE_DOSSIER.'documents/formations/'.$nomFichier);
    					$_formationSession->setFichierFeuilleDePresence($nomFichier);
    					$reenregistre = true;
    				}
    				if ($_FILES['formation_session_fichier_feuille_evaluation']['size'] > 0)
    				{
    					$fichier = new Fichier($_FILES['formation_session_fichier_feuille_evaluation']['tmp_name']);
    					$nomFichier = 'feuille_evaluation-'.$_formationSession->getId().'.'.Fichier::getExtension($_FILES['formation_session_fichier_feuille_evaluation']['name']);
    					$fichier->deplace(SITE_DOSSIER.'documents/formations/'.$nomFichier);
    					$_formationSession->setFichierFeuilleEvaluation($nomFichier);
    					$reenregistre = true;
    				}
    				if ($_FILES['formation_session_fichier_plan_cours']['size'] > 0)
    				{
    					$fichier = new Fichier($_FILES['formation_session_fichier_plan_cours']['tmp_name']);
    					$nomFichier = 'plan_cours-'.$_formationSession->getId().'.'.Fichier::getExtension($_FILES['formation_session_fichier_plan_cours']['name']);
    					$fichier->deplace(SITE_DOSSIER.'documents/formations/'.$nomFichier);
    					$_formationSession->setFichierPlanCours($nomFichier);
    					$reenregistre = true;
    				}
    				if ($reenregistre)
    					$_formationSession->enregistre();
    				//-->
    				if (isset($_POST['formation_session_enregistrement_courriel']))
    				{
    					//<-- Envoi du courriel
    					require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/date.php');
    					require_once(LSL_WEBSITE_DOSSIER.'ressources/dependances/courriel.php');
    					if ($_formationSession->estInter())
    					{
    						$texte = 'Bonjour,'."\n\n".
    							'Nous vous confirmons la session de formation "'.$_formationSession->getCommentaire().'" qui se tiendra '.($_formationSession->getDateDebut() != $_formationSession->getDateFin() ? 'du '.DateMysql::getIntituleDate($_formationSession->getDateDebut()).' au '.DateMysql::getIntituleDate($_formationSession->getDateFin()) : 'le '.DateMysql::getIntituleDate($_formationSession->getDateDebut())).' au sein de nos locaux à l\'adresse ci-dessous :'."\n\n".
    							"\t".'EXF'."\n".
    							"\t".'30 rue Georges Thoretton'."\n".
    							"\t".'92230 GENNEVILLIERS'."\n\n".
    							'Vous trouverez ci-joint l\'ordre de mission correspondant. Merci de bien vouloir nous le retourner signé.'."\n\n".
    							'N\'hésitez pas à nous contacter pour tout complément d\'information.'."\n\n".
    							'Cordialement,'."\n\n".
    							"\t".'L\'équipe EXF'."\n".
    							"\t".'01 47 99 29 05'."\n".
    							"\t".'30 rue Georges Thoretton'."\n".
    							"\t".'92230 GENNEVILLIERS';
    					}
    					elseif ($_formationSession->estIntra())
    					{
    						$texte = 'Bonjour,'."\n\n".
    							'Nous vous confirmons la session de formation "'.$_formationSession->getCommentaire().'" qui se tiendra '.($_formationSession->getDateDebut() != $_formationSession->getDateFin() ? 'du '.DateMysql::getIntituleDate($_formationSession->getDateDebut()).' au '.DateMysql::getIntituleDate($_formationSession->getDateFin()) : 'le '.DateMysql::getIntituleDate($_formationSession->getDateDebut())).' chez notre client "'.$_formationSession->getSociete().'" à l\'adresse ci-dessous :'."\n\n".
    							$_formationSession->getAdresse()."\n\n".
    							'Vous trouverez ci-joint les documents suivants :'."\n\n".
    							'- Ordre de mission, à nous retourner signé avant la formation'."\n".
    							'- Feuille de présence à faire signer par le(s) stagiaire(s) et à nous retourner à l\'issue de la formation'."\n".
    							'- Feuille(s) d\'évaluation à faire remplir par le(s) stagiaire(s) et à nous retourner à l\'issue de la formation'."\n".
    							'N\'hésitez pas à nous contacter pour tout complément d\'information.'."\n\n".
    							'Cordialement,'."\n\n".
    							"\t".'L\'équipe EXF'."\n".
    							"\t".'01 47 99 29 05'."\n".
    							"\t".'30 rue Georges Thoretton'."\n".
    							"\t".'92230 GENNEVILLIERS';
    					}
     
    					$courriel = new Courriel($_formateurDuCalendrier->getAdresseElectronique(), '[EXF] Nouvelle formation', $texte, SITE_ADRESSE_ELECTRONIQUE);
    					if ($_formationSession->estIntra() || $_formationSession->estInter())
    					{
    						if ($_formationSession->estIntra())
    						{
    							if ($_formationSession->getFichierFeuilleDePresence() != null)
    								$courriel->addPieceJointe(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierFeuilleDePresence(), $_formationSession->getFichierFeuilleDePresence());
    							else
    							{
    								$courriel->addPieceJointe(SITE_DOSSIER.'clients/'.$_site->getClient()->getId().'/docs/PRESENCE_2011_Mono.dot', 'Feuille_de_presence_MONO.dot');
    								$courriel->addPieceJointe(SITE_DOSSIER.'clients/'.$_site->getClient()->getId().'/docs/PRESENCE_2011_Multi.dot', 'Feuille_de_presence_MULTI.dot');
    							}
    							if ($_formationSession->getFichierFeuilleEvaluation() != null)
    								$courriel->addPieceJointe(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierFeuilleEvaluation(), $_formationSession->getFichierFeuilleEvaluation());
    							else $courriel->addPieceJointe(SITE_DOSSIER.'clients/'.$_site->getClient()->getId().'/docs/Evaluation.pdf', 'Feuille_evaluation.pdf');
    						}
    						if ($_formationSession->getFichierBonDeCommande() != null)
    							$courriel->addPieceJointe(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierBonDeCommande(), $_formationSession->getFichierBonDeCommande());
    						else $courriel->addPieceJointe(SITE_DOSSIER.'clients/'.$_site->getClient()->getId().'/docs/ODM.dot', 'Ordre_de_mission.dot');
    						if ($_formationSession->getFichierPlanCours() != null)
    							$courriel->addPieceJointe(SITE_DOSSIER.'documents/formations/'.$_formationSession->getFichierPlanCours(), $_formationSession->getFichierPlanCours());
    					}
    					$courriel->envoie();
    					//-->
    				}
    			}
    			else $formulaire->addMessageErreur('La session de formation n\'a pas été enregistrée.');
    		}
    	}
     
    	$_annee = date('Y');
    	if (isset($_GET['annee']))
    		$_annee = intval($_GET['annee']);
    	$_mois = date('n');
    	if (isset($_GET['mois']))
    		$_mois = intval($_GET['mois']);
     
    	$mktime_premier_jour = mktime(0, 0, 0, $_mois, 1, $_annee);
    	$nombre_jours = Date::getNombreJoursMois($_mois, $_annee);
    	$premier_jour_semaine = intval(date('N', $mktime_premier_jour)) - 1;
    	$compteur_jour = 1;
    	$compteur_jour_semaine = $premier_jour_semaine;
     
    	$_mois_precedent = $_mois - 1;
    	$_mois_suivant = $_mois + 1;
    	$_annee_precedent = $_annee;
    	$_annee_suivant = $_annee;
    	if ($_mois_precedent == 0)
    	{
    		$_mois_precedent = 12;
    		$_annee_precedent--;
    	}
    	else if ($_mois_suivant == 13)
    	{
    		$_mois_suivant = 1;
    		$_annee_suivant++;
    	}
     
    	/*if ($_toutAfficher)
    		$_formationSessions = FormationSession::getFormationSessionsPourAnneeEtMois($_annee, $_mois);
    	else $_formationSessions = FormationSession::getFormationSessionsPourFormateurEtAnneeEtMois($_formateurDuCalendrier, $_annee, $_mois);
    
    	$_formationSessionsParJour = array();
    	foreach ($_formationSessions as $formationSession)
    	{
    		$date = $formationSession->getDateDebut();
    		while ($date != DateMysql::getAdditionJours($formationSession->getDateFin(), 1))
    		{
    			if (DateMysql::getMoisDate($date, true) == $_mois)
    			{
    				if (!isset($_formationSessionsParJour[DateMysql::getJourDate($date, true)]))
    					$_formationSessionsParJour[DateMysql::getJourDate($date, true)] = array();
    				$_formationSessionsParJour[DateMysql::getJourDate($date, true)][] = $formationSession;
    			}
    			$date = DateMysql::getAdditionJours($date, 1);
    		}
    	}*/
     
     
    	if ($_toutAfficher)
    		$_formationSessions = FormationSession::getFormationSessionsPourAnneeEtMois($_annee, $_mois);
    	else $_formationSessions = FormationSession::getFormationSessionsPourFormateurEtAnneeEtMois($_formateurDuCalendrier, $_annee, $_mois);
     
    	$_formationSessionsParJour = array();
    	foreach ($_formationSessions as $index => $formationSession)
    	{
    		$date = $formationSession->getDateDebut();
    		$nombreJours = round(abs(strtotime($formationSession->getDateFin()) - strtotime($date)) / 60 / 60 / 24);
    		if (DateMysql::getMoisDate($date, true) < $_mois)
    		{
    			$jour = 1;
    			$nombreJours = DateMysql::getJourDate($formationSession->getDateFin(), true) - 1;
    		}
    		else $jour = DateMysql::getJourDate($formationSession->getDateDebut(), true);
    		//$dateFinLendemain = DateMysql::getAdditionJours($formationSession->getDateFin(), 1);
    		//echo $formationSession->getDateFin().'-'.$date.'-';
    		//echo $nombreJours.'-'.'<br />';
    		//while ($date != $dateFinLendemain)
    		{
    			for ($i = 0; $i <= $nombreJours; $i++)
    			//if (DateMysql::getMoisDate($date, true) == $_mois)
    			{
    				if (!isset($_formationSessionsParJour[$jour + $i]))
    					$_formationSessionsParJour[$jour + $i] = array();
    				$_formationSessionsParJour[$jour + $i][] = $formationSession;
    			}
    			//$date = DateMysql::getAdditionJours($date, 1);
    		}
    	}


    EDIT 2 : Si je modifie l'encodage de la page article_groupe.php vers UTF8 Sans BOM je n'ai certes plus les messages d'erreur de session_start, mais je me fais éjecter de la session et reviens donc sur la page d'acceuil du site. Je la laisse donc en UTF8 tout court en attendant.

  19. #19
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Si je rajoute var_dump($_page); au début de article_groupe.php j'obtiens :

    object(Page)#15 (16) { ["id":"Page":private]=> int(14) ["site":"Page":private]=> object(Site)#2 (15) { ["id":"Site":private]=> int(1) ["client":"Site":private]=> object(Client)#3 (13) { ["id":"Client":private]=> int(1) ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> object(Langue)#4 (4) { ["id":"Langue":private]=> int(7) ["nom":"Langue":private]=> NULL ["icone":"Langue":private]=> NULL ["codeIso639_1":"Langue":private]=> string(2) "fr" } ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> object(SiteType)#5 (5) { ["id":"SiteType":private]=> NULL ["client":"SiteType":private]=> NULL ["nom":"SiteType":private]=> NULL ["controleur":"SiteType":private]=> string(17) "EXF.php" ["vue":"SiteType":private]=> string(17) "EXF.php" } ["siteDesign":"Site":private]=> object(SiteDesign)#6 (10) { ["id":"SiteDesign":private]=> NULL ["bordureCouleur":"SiteDesign":private]=> NULL ["texteCouleur":"SiteDesign":private]=> NULL ["liensCouleur":"SiteDesign":private]=> NULL ["fondCouleur":"SiteDesign":private]=> NULL ["pageFondCouleur":"SiteDesign":private]=> NULL ["favicon":"SiteDesign":private]=> string(13) "favicon-1.png" ["logoUrl":"SiteDesign":private]=> NULL ["logoLargeur":"SiteDesign":private]=> string(1) "0" ["logoHauteur":"SiteDesign":private]=> string(1) "0" } ["pageAccueil":"Site":private]=> object(Page)#7 (16) { ["id":"Page":private]=> int(1) ["site":"Page":private]=> object(Site)#8 (15) { ["id":"Site":private]=> NULL ["client":"Site":private]=> object(Client)#9 (13) { ["id":"Client":private]=> NULL ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> NULL ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> NULL ["siteDesign":"Site":private]=> NULL ["pageAccueil":"Site":private]=> NULL ["titre":"Site":private]=> NULL ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> NULL ["bodyBas":"Site":private]=> NULL ["piedDePage":"Site":private]=> NULL ["erreurHtml":"Site":private]=> NULL ["menuHautHtml":"Site":private]=> NULL ["menuBasHtml":"Site":private]=> NULL } ["pageStatut":"Page":private]=> object(PageStatut)#10 (3) { ["id":"PageStatut":private]=> NULL ["nom":"PageStatut":private]=> NULL ["icone":"PageStatut":private]=> NULL } ["pageParente":"Page":private]=> NULL ["pageType":"Page":private]=> object(PageType)#11 (7) { ["id":"PageType":private]=> int(1) ["client":"PageType":private]=> NULL ["nom":"PageType":private]=> NULL ["controleur":"PageType":private]=> NULL ["vue":"PageType":private]=> NULL ["champIntitule1":"PageType":private]=> NULL ["champIntitule2":"PageType":private]=> NULL } ["titre":"Page":private]=> NULL ["url":"Page":private]=> string(43) "Specialiste_de_la_formation_professionnelle" ["description":"Page":private]=> NULL ["motsClefs":"Page":private]=> NULL ["html":"Page":private]=> NULL ["diaporama":"Page":private]=> NULL ["pageTypeChampValeur1":"Page":private]=> NULL ["pageTypeChampValeur2":"Page":private]=> NULL ["titreH1":"Page":private]=> NULL ["filAriane":"Page":private]=> array(0) { } ["pagesJavascript":"Page":private]=> array(0) { } } ["titre":"Site":private]=> string(13) "EXF" ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> string(0) "" ["bodyBas":"Site":private]=> string(0) "" ["piedDePage":"Site":private]=> string(0) "" ["erreurHtml":"Site":private]=> string(554) "











    Désolé, la page n'existe pas ou n'existe plus.



    Retour à l'accueil
    " ["menuHautHtml":"Site":private]=> string(0) "" ["menuBasHtml":"Site":private]=> string(0) "" } ["pageStatut":"Page":private]=> object(PageStatut)#16 (3) { ["id":"PageStatut":private]=> int(1) ["nom":"PageStatut":private]=> NULL ["icone":"PageStatut":private]=> NULL } ["pageParente":"Page":private]=> object(Page)#12 (16) { ["id":"Page":private]=> NULL ["site":"Page":private]=> object(Site)#2 (15) { ["id":"Site":private]=> int(1) ["client":"Site":private]=> object(Client)#3 (13) { ["id":"Client":private]=> int(1) ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> object(Langue)#4 (4) { ["id":"Langue":private]=> int(7) ["nom":"Langue":private]=> NULL ["icone":"Langue":private]=> NULL ["codeIso639_1":"Langue":private]=> string(2) "fr" } ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> object(SiteType)#5 (5) { ["id":"SiteType":private]=> NULL ["client":"SiteType":private]=> NULL ["nom":"SiteType":private]=> NULL ["controleur":"SiteType":private]=> string(17) "EXF.php" ["vue":"SiteType":private]=> string(17) "EXF.php" } ["siteDesign":"Site":private]=> object(SiteDesign)#6 (10) { ["id":"SiteDesign":private]=> NULL ["bordureCouleur":"SiteDesign":private]=> NULL ["texteCouleur":"SiteDesign":private]=> NULL ["liensCouleur":"SiteDesign":private]=> NULL ["fondCouleur":"SiteDesign":private]=> NULL ["pageFondCouleur":"SiteDesign":private]=> NULL ["favicon":"SiteDesign":private]=> string(13) "favicon-1.png" ["logoUrl":"SiteDesign":private]=> NULL ["logoLargeur":"SiteDesign":private]=> string(1) "0" ["logoHauteur":"SiteDesign":private]=> string(1) "0" } ["pageAccueil":"Site":private]=> object(Page)#7 (16) { ["id":"Page":private]=> int(1) ["site":"Page":private]=> object(Site)#8 (15) { ["id":"Site":private]=> NULL ["client":"Site":private]=> object(Client)#9 (13) { ["id":"Client":private]=> NULL ["clientModules":"Client":private]=> NULL ["nom":"Client":private]=> NULL ["prenom":"Client":private]=> NULL ["pseudo":"Client":private]=> NULL ["dateInscription":"Client":private]=> NULL ["passe":"Client":private]=> NULL ["adresseElectronique":"Client":private]=> NULL ["entreprise":"Client":private]=> NULL ["telephone":"Client":private]=> NULL ["tailleHebergement":"Client":private]=> NULL ["dateFinValidite":"Client":private]=> NULL ["langues":"Client":private]=> array(0) { } } ["langue":"Site":private]=> NULL ["racine":"Site":private]=> string(29) "http://www.EXF.com/" ["siteType":"Site":private]=> NULL ["siteDesign":"Site":private]=> NULL ["pageAccueil":"Site":private]=> NULL ["titre":"Site":private]=> NULL ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> NULL ["bodyBas":"Site":private]=> NULL ["piedDePage":"Site":private]=> NULL ["erreurHtml":"Site":private]=> NULL ["menuHautHtml":"Site":private]=> NULL ["menuBasHtml":"Site":private]=> NULL } ["pageStatut":"Page":private]=> object(PageStatut)#10 (3) { ["id":"PageStatut":private]=> NULL ["nom":"PageStatut":private]=> NULL ["icone":"PageStatut":private]=> NULL } ["pageParente":"Page":private]=> NULL ["pageType":"Page":private]=> object(PageType)#11 (7) { ["id":"PageType":private]=> int(1) ["client":"PageType":private]=> NULL ["nom":"PageType":private]=> NULL ["controleur":"PageType":private]=> NULL ["vue":"PageType":private]=> NULL ["champIntitule1":"PageType":private]=> NULL ["champIntitule2":"PageType":private]=> NULL } ["titre":"Page":private]=> NULL ["url":"Page":private]=> string(43) "Specialiste_de_la_formation_professionnelle" ["description":"Page":private]=> NULL ["motsClefs":"Page":private]=> NULL ["html":"Page":private]=> NULL ["diaporama":"Page":private]=> NULL ["pageTypeChampValeur1":"Page":private]=> NULL ["pageTypeChampValeur2":"Page":private]=> NULL ["titreH1":"Page":private]=> NULL ["filAriane":"Page":private]=> array(0) { } ["pagesJavascript":"Page":private]=> array(0) { } } ["titre":"Site":private]=> string(13) "EXF" ["sousTitre":"Site":private]=> NULL ["headBas":"Site":private]=> string(0) "" ["bodyBas":"Site":private]=> string(0) "" ["piedDePage":"Site":private]=> string(0) "" ["erreurHtml":"Site":private]=> string(554) "











    Désolé, la page n'existe pas ou n'existe plus.



    Retour à l'accueil
    " ["menuHautHtml":"Site":private]=> string(0) "" ["menuBasHtml":"Site":private]=> string(0) "" } ["pageStatut":"Page":private]=> object(PageStatut)#13 (3) { ["id":"PageStatut":private]=> NULL ["nom":"PageStatut":private]=> NULL ["icone":"PageStatut":private]=> NULL } ["pageParente":"Page":private]=> NULL ["pageType":"Page":private]=> object(PageType)#14 (7) { ["id":"PageType":private]=> int(1) ["client":"PageType":private]=> NULL ["nom":"PageType":private]=> NULL ["controleur":"PageType":private]=> NULL ["vue":"PageType":private]=> NULL ["champIntitule1":"PageType":private]=> NULL ["champIntitule2":"PageType":private]=> NULL } ["titre":"Page":private]=> string(22) "Votre espace formateur" ["url":"Page":private]=> string(17) "Espace_formateurs" ["description":"Page":private]=> NULL ["motsClefs":"Page":private]=> NULL ["html":"Page":private]=> NULL ["diaporama":"Page":private]=> NULL ["pageTypeChampValeur1":"Page":private]=> NULL ["pageTypeChampValeur2":"Page":private]=> NULL ["titreH1":"Page":private]=> NULL ["filAriane":"Page":private]=> array(0) { } ["pagesJavascript":"Page":private]=> array(0) { } } ["pageType":"Page":private]=> object(PageType)#17 (7) { ["id":"PageType":private]=> int(1) ["client":"PageType":private]=> NULL ["nom":"PageType":private]=> NULL ["controleur":"PageType":private]=> string(62) "EXF/espace_formateurs/gestion_formation_sessions.php" ["vue":"PageType":private]=> string(62) "EXF/espace_formateurs/gestion_formation_sessions.php" ["champIntitule1":"PageType":private]=> NULL ["champIntitule2":"PageType":private]=> NULL } ["titre":"Page":private]=> string(28) "Mon calendrier de formations" ["url":"Page":private]=> string(32) "Espace_formateurs/Mon_calendrier" ["description":"Page":private]=> string(0) "" ["motsClefs":"Page":private]=> string(0) "" ["html":"Page":private]=> string(0) "" ["diaporama":"Page":private]=> NULL ["pageTypeChampValeur1":"Page":private]=> string(0) "" ["pageTypeChampValeur2":"Page":private]=> string(0) "" ["titreH1":"Page":private]=> NULL ["filAriane":"Page":private]=> array(2) { [0]=> array(2) { [0]=> string(28) "Mon calendrier de formations" [1]=> string(61) "http://www.EXF.com/Espace_formateurs/Mon_calendrier" } [1]=> array(2) { [0]=> string(22) "Votre espace formateur" [1]=> string(46) "http://www.EXF.com/Espace_formateurs" } } ["pagesJavascript":"Page":private]=> array(0) { } }
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/gestion_formation_sessions.php on line 3

    Warning: Cannot modify header information - headers already sent by (output started at /home/o102272/public_html/LSL_website/ressources/dependances/article_groupe.php:1) in /home/o102272/public_html/LSL_website/ressources/pages/controleurs/EXF/espace_formateurs/gestion_formation_sessions.php on line 15

  20. #20
    Futur Membre du Club
    Homme Profil pro
    formateur
    Inscrit en
    Octobre 2014
    Messages
    17
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : formateur

    Informations forums :
    Inscription : Octobre 2014
    Messages : 17
    Points : 5
    Points
    5
    Par défaut
    Citation Envoyé par rawsrc Voir le message
    Recrée un fichier article_groupe.php (utf8, sans BOM dans notepad++) et mets y dedans :


    Finalement, j'ai refait cette opération. Je ne sais pas pourquoi la première fois ça n'avait rien donné, peut être que le transfert avec filezilla ne s'était pas fait correctement, mais cette fois-ci, ça semble fonctionner. Aussi bien l'accès espace formateur que les sous-menus. Je vais donc revérifier l'ensemble des fonctionnalités, et si ça semble OK, je passerai le topic en résolu en fin de journée.

    En tout cas, MERCI !
    :-)

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Réponses: 9
    Dernier message: 14/01/2016, 23h20
  2. headers already sent - session_start()
    Par hedgehog dans le forum Langage
    Réponses: 3
    Dernier message: 11/11/2009, 13h16
  3. session_start() : Cannot send session cache limiter - headers already sent
    Par Keweed dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 30/09/2009, 10h14
  4. session_start : headers already sent
    Par youyouta dans le forum Langage
    Réponses: 2
    Dernier message: 15/05/2008, 14h11
  5. Réponses: 3
    Dernier message: 21/06/2006, 14h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo