bonjour, j'ai une application qui marche bien a local mais après déploiement au serveur j'obtiens que des pages blanches.

après avoir fait des tests pour voir les bugs j'ai compris que le problème venait des variables de sessions .

voici mon 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
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
299
300
 
<?php session_start();
    include_once ("conf/connexion.php");
 
  //On verifie que lutilisateur est connecte
if(isset($_SESSION['login']) &&  $_SESSION['profil']=="admin")
{
 $messagerecus= mysql_query("select  * from  msgchat_web 
                        where destinataire='".$_SESSION['login']."'  and lang='fr' 
                ");
?>
   <!DOCTYPE html>
	<html>
		<head>
			<title>CHAT SMS INTERLINK: Welcome </title>
 
			<link rel="stylesheet" href="css/design.css" />
			<link rel="stylesheet" href="css/modal.css" />
			<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
		    <script type="text/javascript" src="js/jquery-ui-1.9.0.custom.js"></script>
		    <script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>
		    <script type="text/javascript" src="js/scripts.js"></script>
 
 
 
		</head>
 
		<body> 
 <div id="corps">
     <div  id=bandeau>
          <?php  
          $chemin='header/';
         include($chemin.'logo.php');
 
         $chemin='header/';
         include($chemin.'banniere.php');  
         ?>
     </div>
       <div id="menu">
 
			  <div id="compte">
			    <?php  
					         $query= mysql_query("select  * from abonne_chat_maur  where  pseudo='".$_SESSION['login']."'");
 
					              $profil=mysql_fetch_array($query);
					           	  $pseudo=$profil['pseudo'];
					           	  $statutprofil=$profil['statut'];
					           	    $refabonn=$profil['ref_abonn'];
					     ?>
			      <span id="spanCompte"><a href="compte.php"><?php  echo ucfirst($pseudo) ?></a></span>		 
					  <ul class="menuvertical">
 
								 <li ><a href="acceuil.php">ACCEUIL</a></li>
							     <li > <a id="nav" href="listermessage.php" >Boite de  Reception(<?php echo intval(mysql_num_rows($messagerecus)); ?>)</a></li>	
							     <li> <a  id="nav" href="moncv.php" >Mon CV</a></li>				     
								<li> <a  id="nav" href="listeProfil.php" >Liste Des Profils</a></li>
								<li> <a  id="nav" href="listePseudoBloque.php" >Liste Noire</a></li>
								<!--<li> <a  id="nav" href="listePseudoNonBloque.php" >Profils Non Bloqués</a></li>
								  --><li><a  id="nav" href="rechercheprofil.php">Recherche profils</a></li>
								  <li><a  id="nav" href="ajouterUser.php">Ajouter Membre</a></li>
								  <li><a  id="nav" href="listecommandes.php">Aide</a></li>
								  <?php if($statutprofil==1) {
								   ?>
 
								  <li><a  id="nav" href="pause.php">PAUSE</a></li>
								  <?php } elseif($statutprofil==2)
								  {?>
								   <li><a  id="nav" href="retour.php">RETOUR</a></li>
								  <?php }?>
								  <li> <a id="nav"  href="logout.php">Déconnexion</a></li>
								 </ul>			 
			  </div>  
 
			 <div id="salon">
			      <span id="spanSalon">Les  Salons</span>
 
 
			    <table>    
			        <?php             
			               $req= "select * from  themes where  lang='fr' ";
 
			                $res= mysql_query("$req");
			                $inc=-1;
			                $incposte=0;	                
			                while ($data=mysql_fetch_assoc($res))
			                {	                     
			                //	echo'<input type="radio" name="lib_theme"  id="lib_theme"  value="'.$data['ref_theme'].'" > ';echo $data['lib_theme']; echo'<br>';
			                	echo '<tr>'; 
 
			                	 $reqconsalon= mysql_query("select  * from connexions
			                	                            where  ref_abonn='".$refabonn."' and theme='".$data['ref_theme']."'
			                	                             ");
			                	 $datastatutcon=mysql_fetch_array($reqconsalon);
			                	  $statutcon=$datastatutcon['statut'];
			                	  echo '<td>'; echo $data['lib_theme'];echo '</td>';
 
			                	  if($statutcon==1)
			                	  {
			                     	echo '<td><a href="quitterchat.php?ref_salon='.$data['ref_theme'].'" > désinscrire</a></td>';
 
			                     	$var=++$incposte;
			                     	?>
			                     	<!--<td><a   href="#"  id=""   onclick="poster_message()">poster </a></td>
			                     	--><?php 
			                	  } else
			                	  {
			                	  	echo '<td><a  href="inscription_salon.php?ref_salon='.$data['ref_theme'].'" > s\'inscrire</a></td>';
			                	  }
 
 
 
			                	echo '</tr>';
			                	//echo'<span class="col1">'; echo $data["lib_theme"]; echo '</span> ';
			                	//echo '<input type="submit"  id ="ins_'.++$inc.'" value="inscrire" data-theme="'.$data["lib_theme"].'" /> <a href="#">chatter </a><br/>   '; 
 
 
			                }
			             //  echo '<input type="submit"  id ="ins_'.++$inc.'" value="inscrire" data-theme="'.$data["ref_theme"].'" />';
			              //  echo '<input type="hidden"  name="lib_theme" id="lib_theme"   />';  
			        ?>
 
 
			   </table>
			   <br>
			      <span id="monsalon"> <a  href="indexchat.php"> Votre  Salon de  Chat </a> </span>
			  </div>
 
 
 
			</div>
 
			 <div id="contenu">
 
 
    <?php 
    if(isset($_POST['enregistrer']))
    {
 
    	  //  include_once("processingimage.php");
    	 //    $image="avatar";
    //	$rand_name = rand();
 
    	//$processingimage = new ProcessingImage();	
	 	//$processingimage->load_image($image);
	 	//$file_name = $processingimage->get_imagename();
	 	//$file_ext = $processingimage->get_imageextension();
	 	//$processingimage->resize_image(50, 50);
	 //	$processingimage->save_image('image/'.$rand_name.$file_ext);
        $nom=$_POST['nom'];
        $nom=mysql_escape_string($nom);
        $prenom=$_POST['prenom'];
        $prenom=mysql_escape_string($prenom);
        $login=$_POST['login'];
        $login=mysql_escape_string($login);
        $email=$_POST['email'];
        $email=mysql_escape_string($email);
        $password=md5($_POST['password']);
        $password=mysql_escape_string($password);
        $confirmpassword=md5($_POST['confirmpassword']);
        $confirmpassword=mysql_escape_string($confirmpassword);
        $sexe=$_POST['sexe'];
 
        $age=$_POST['age'];
        $adresse=$_POST['adresse'];
        $adresse=mysql_escape_string($adresse);
        $phone=$_POST['phone'];
        $profil=$_POST['profil'];
      //  $avatar=$_FILES['avatar'];
        $statut=$_POST['statut'];
 
        $date_abonn= date('Y-m-d');
	   $date=explode("-",$date_abonn);
     $date_abonn=$date[0].$date[1].$date[2];
 
	  $heure_abonn = date('H:i:s');
 
       if($_POST['password']!=$_POST['confirmpassword'])
				       {
				       	        header('Location:ajouterUser.phperreur=1');
				              //  echo"mot passe n'a pas �t� correctement  confirm� ";
				       }
    elseif ((mysql_num_rows(mysql_query(" select 1 from users where  email='".$email."'  OR login='".$login."' "))>0))
		                     	 {
		                     	 	  header ('Location:ajouterUser.php?erreur=2');
		                     	 //	echo" login  ou email  deja  utilisé";
		                     	 }
   else{
        mysql_query("insert  into users(nom,prenom,pseudo,email,password,confirmpassword,sexe,adresse,num_telephone,profil,statut_user,lang,cv)
   values('".$nom."','".$prenom."','".$login."','".$email."','".$password."','".$confirmpassword."','".$sexe."','".$adresse."','".$phone."','".$profil."','".$statut."','fr','') 
        ");
 
         mysql_query("insert  into abonne_chat_maur(num_tel,statut,en_ligne,pseudo,age,sexe,ville,cv,cv2,date_abonn,heure_abonn,lang)
   values('web','0','1','".$login."','".$age."','".$sexe."','".$adresse."','','','".$date_abonn."','".$heure_abonn."','fr') 
        ");
 
        	  header ('Location:ajouterUser.php?reussite=1');
   }
 
    }
 
?>
        <span id="spanmp">Nouveau Membre</span>
     <form  id="adduser" action="ajouterUser.php"   method="post" enctype="multipart/form-data">
       <fieldset  id="infouser">
       <legend>Information</legend>
       <label id="labelnom"> nom  </label>
       <input type="text" name="nom" id="nom" required> <br>
       <label id="labelprenom"> Prenom  </label>
       <input type="text" name="prenom" id="prenom" required></br> 
       <label id="labelsexe"> sexe </label>
        <select name="sexe" id="sexe"> 
			       <option value="homme">Homme</option>
			       <option value="Femme">femme</option>
	    </select><br>
       <label  id="labelage"> age </label>
       <input type="number" name="age" id="age" ><br>
       </fieldset>
       <fieldset id="pseudo">
       <legend>Pseudo</legend>
       <label id="labellogin"> login </label>
       <input type="text" name="login" id="login"><br>
       <label id="labelemail"> email  </label>
       <input type="email" name="email" id="email"></br>
       <label id="labelpassword"> password  </label>
       <input type="password" name="password" id="password"><br>
       <label id="labelconfirmpassword"> confirmpassword </label>
       <input type="password" name="confirmpassword"  id="confirmpassword" >
       </fieldset>
       <fieldset id="adresseuser">
       <legend>Adresse</legend>
       <label id="labeladresse"> adresse </label>
       <input type="text" name="adresse" id="adresse" >
       <label id="labelphone"> Telephone </label>
       <input type="text" name="phone"  id="phone"><br>
       <label id="labelprofil"> Profil :</label>
                <select name="profil"  id="profil">
                              <option value="user">Utilisateur</option>
                               <option value="admin">Administrateur</option>
                </select><br>
 
       <label id="labelstatut"> statut </label>
       <input type="number" name="statut"  id=statut>
       </fieldset><br>
       <input  type="submit" name="enregistrer" id="envoye"  value="envoyé">
 
       <p align="center" style="color: #B22222;">
         <?php 
        $message = "";
   if(isset($_GET['erreur'])){
      switch($_GET['erreur']) {
       case 1:
        $message = " mot passe n'a pas été  correctement  confirmé";
         break;
 
 
     case 2:
               $message = "login  ou email  deja  utilisé";
        break;
 
          default :
 
        break;
}
 
       echo $message;
   }
 
       if(isset($_GET["reussite"]))
 
       {
       	switch($_GET['reussite']) {
         case 1:
       		 $message = "Membre a été bien ajouté.";
         break;  
 
       	}
        echo $message;
 
       }
 ?>  
    </p>
       </form>
 
 
 
             </div>
 
 
</div>
 
  </body>
 
</html>
<?php
}
else
{
	 	 header ('Location: ../../index.php');
}
?>
si j enleve cette partie de test
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
if(isset($_SESSION['login']) &&  $_SESSION['profil']=="admin")
{
ma page est bien affiché cela veut dire que qu il ne reconnu pas les variables session que j'ai declaré dans mon fichier authentification.

merci d'avance de votre aide