Mon problème est que mon site php est appelé deux fois. Mais je ne sais pas pourquoi. dans mon accès-log je reçois également deux entrées si je reload:site s'appelle deux fois?
127.0.0.12 - - [13/Oct/2010:20:41:56 +0200] "POST /index.php HTTP/1.1" 200 1493 "http://mkw-testing/index.php" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7"
127.0.0.12 - - [13/Oct/2010:20:41:57 +0200] "GET /favicon.ico HTTP/1.1" 200 1498 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7"
mon error.log montre:
[Wed Oct 13 21:08:35 2010] [debug] mod_deflate.c(615): [client 127.0.0.12] Zlib: Compressed 2766 to 1067 : URL /index.php
[Wed Oct 13 21:08:35 2010] [debug] mod_deflate.c(615): [client 127.0.0.12] Zlib: Compressed 2743 to 1038 : URL /index.php/favicon.ico
Que puis-je faire? Je n'ai pas de redirections, recharge aussi. en code javascript.
thx4help
pourrait y avoir un problème avec les cookies?
shell j'utilise le fichier htaccess pour obtenir le site est appelé seulement une fois?
MISE À JOUR
independend des accès journal est mon site évidemment appelé deux fois !! fait, si j'imprime un index, qui est incrémenté d'un point chaque appel, le site affiché montre uniquement les nombres impairs. il fait donc un pas de deux au lieu d'un. la fonction d'incrémentation n'est PAS appelée deux fois dans le code. et si j'imprime l'index dans un fichier texte, j'obtiens tous les nombres, pas seulement les nombres impairs. .... je ne sais pas quoi faire: -S, où chercher, quoi debug ....
ici mon html:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>Testsuite</title>
<style type="text/css">
...
</style>
</head>
<body>
<!--script type="text/javascript">alert("go home!");</script-->
<p style="font-size: smaller; color: #555">
Testcases ID: 75<br>
Verbleibend: 94.5 % noch zu checken...<br>
</p>
<div id="action">
<h2>Suchprofile</h2>
<p>
Screen number: B01 (4)<br>
Pfad: /search/type<br><br>
</p>
</div>
<h2></h2>
<form name="testsuite" action="/index.php" method="POST">
<p style="width: 650px;">
<span style="color: gray">Ausgangassituation:</span> Der User befindet sich auf der /search/type Seite. <br>
<span style="color: gray">Eingabe:</span> Der User klickt auf ?Dieses Suchprofil speichern?. <br><br>
Reaktionen
<input type="hidden" name="id_testcase" value="75" />
</p>
<table width="650" border="1" cellspacing="0" cellpadding="0" >
<tr>
<td>Es öffnet sich ein Eingabefeld </td>
<td class="checkbox"><input type="checkbox" name="requirements[]" value="103" /></td>
</tr>
<tr>
<td>Rechts neben dem Eingabefeld wird ein Plus-Symbol angezeigt.</td>
<td class="checkbox"><input type="checkbox" name="requirements[]" value="104" /></td>
</tr>
</table>
<br>
<div style="border: 1px dashed #ccc; width: 650px; background-color: #ddd">
<input type="radio" name="action" value="skip" id="skip" /><label for="skip">Ignorieren</label><br>
<input type="radio" name="action" value="store" id="store" checked/><label for="store">Speichern</label><br>
<br>
<center>
<input type="submit" id="submitter" value="weiter" />
</center>
</div>
</form>
</body>
</html>
WTF ?? le phénomène se produit seulement en chrome. – helle
Vérifiez si vous utilisez addon adblock. J'ai eu le même problème et quand j'ai arrêté le problème d'addon résolu. – resul