• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

multipling mesaages

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
7 posts • Page 1 of 1

Postby jwaldek » Thu Oct 04, 2007 8:54 am

i've got some strange error.

posted messages multiply in every refresh

so in few seconds i've got:

07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:49:20 ‹admin2› test
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:49:20 ‹admin2› test
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:49:20 ‹admin2› test
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:49:20 ‹admin2› test
2007-10-04 07:06:58 ‹admin2› gffgdfdf
2007-10-04 07:07:13 ‹admin2› fgdfgdfg
2007-10-04 07:29:20 * admin2 zmienił[a] swój nick na admin
2007-10-04 07:48:59 * admin zmienił[a] swój nick na admin2
2007-10-04 07:49:20 ‹admin2› test
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby OldWolf » Thu Oct 04, 2007 9:07 am

Could you please post the content of your chatroom file (the one setting the parameters and printing the chat), and a list of any changes you've made to the software?
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby jwaldek » Thu Oct 04, 2007 9:24 am

the configuration:

Code: Select all
//cms code
header("Content-Type: text/html; charset=utf-8");
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter("must-revalidate");
ini_set("session.gc_maxlifetime",7200);

define("SPR_INCLUDE","tak");

include_once("inc/konfig.php");
include_once($konfig['inc']."_init_inc.php");
// end cms code

function chat(){

require_once dirname(__FILE__)."/chat/src/phpfreechat.class.php";

$konfig_chat['isadmin']=true;
$konfig_chat["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$konfig_chat["language"] = "pl_PL";
$konfig_chat["output_encoding"]="UTF-8";
$konfig_chat["max_nick_len"]=20;
$konfig_chat["frozen_nick"]=true;
$konfig_chat["nickmeta"]=array();
$konfig_chat["nick"]="admin2";
$konfig_chat["title"]="Chat";
$konfig_chat["channels"]=array("chat 1");
$konfig_chat["frozen_channels"]=$konfig_chat["channels"];
$konfig_chat["refresh_delay"]=4000;
$konfig_chat["timeout"]=200000;
$konfig_chat["max_text_len"]=400;
$konfig_chat["max_msg"]=20;
$konfig_chat["max_displayed_lines"]=200;
$konfig_chat["height"]="500px";
$konfig_chat["shownotice"]=3;
$konfig_chat["nickmarker"]=true;
$konfig_chat["startwithsound"]=false;
$konfig_chat["display_ping"]=false;
$konfig_chat["date_format"]="Y-m-d";


$chat = new phpFreeChat($konfig_chat);

$chat->printChat();

}

chat();

no modification in chat.
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby OldWolf » Fri Oct 05, 2007 6:23 am

Hmm, nothing looks terribly odd off of that... you may be experiencing something strange with the AJAX and that chat function... you might look at trying the chat parameters, set up, and print outside of it just to see if it's related to that. Could I get a link to take a look at the site?

I'll try messing around with a similiar set up on a test site later and see if I can reproduce the issue.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby phpfreechat » Fri Oct 05, 2007 7:27 am

jwaldek, to help us to understand you problem, could you tell us what is your server characteristic : filesystem type, php version, apache version ... ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jwaldek » Fri Oct 05, 2007 10:17 am

i test chat on my local server on window platform:

PHP Version 5.1.2
System Windows NT JJJ 5.1 build 2600
Server API Apache 2.0 Handler

i'll try to make online demo with similar php/apache configuration on linux
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top

Postby jwaldek » Fri Oct 05, 2007 11:57 am

i made online demo on unix http://chattest.jw-webdev.info/
work properly.

but on local server on windows the same test script don't work properly (multipling messages).

on php error_reporting E_ALL i've got some php notices:

<errorentry>
<datetime>2007-10-05 12:07:31</datetime>
<errornum>E_WARNING</errornum>
<errormsg>touch() [<a href='function.touch'>function.touch</a>]: Unable to create file E:waldekwwwchattestchatsrc/../data/private/cache/1021f824d18cec20ce4c137ceff9ca52.php_lock because No such file or directory</errormsg>
<scriptname>E:waldekwwwchattestchatsrcpfcglobalconfig.class.php</scriptname>
<scriptlinenum>1043</scriptlinenum>
</errorentry>


<errorentry>
<datetime>2007-10-05 12:07:39</datetime>
<errornum>E_NOTICE</errornum>
<errormsg>Undefined index: clientid</errormsg>
<scriptname>E:waldekwwwchattestchatsrcproxieslock.class.php</scriptname>
<scriptlinenum>35</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:07:39</datetime>
<errornum>E_NOTICE</errornum>
<errormsg>Undefined index: sender</errormsg>
<scriptname>E:waldekwwwchattestchatsrcproxieslock.class.php</scriptname>
<scriptlinenum>37</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:07:39</datetime>
<errornum>E_NOTICE</errornum>
<errormsg>Undefined index: recipient</errormsg>
<scriptname>E:waldekwwwchattestchatsrcproxieslock.class.php</scriptname>
<scriptlinenum>38</scriptlinenum>
</errorentry>

notices from linux chattest:

<errorentry>
<datetime>2007-10-05 12:37:45</datetime>
<errornum>E_WARNING</errornum>
<errormsg>opendir(/chat/src/../data/private/chat/s_e251273eb74a8ee3f661a7af00915af1/channelid-to-msg/SERVER) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory</errormsg>
<scriptname>/chat/src/pfctools.php</scriptname>
<scriptlinenum>156</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:37:45</datetime>
<errornum>E_WARNING</errornum>
<errormsg>opendir(/chat/src/../data/private/chat/s_e251273eb74a8ee3f661a7af00915af1/channelid-to-msgid/SERVER) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory</errormsg>
<scriptname>/chat/src/pfctools.php</scriptname>
<scriptlinenum>156</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:37:45</datetime>
<errornum>E_WARNING</errornum>
<errormsg>opendir(/chat/src/../data/private/chat/s_e251273eb74a8ee3f661a7af00915af1/nickid-to-cmdtoplay/3348618dba5150e13fca62a187a4d1f0) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory</errormsg>
<scriptname>/chat/src/pfctools.php</scriptname>
<scriptlinenum>156</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:37:55</datetime>
<errornum>E_NOTICE</errornum>
<errormsg>Undefined index: clientid</errormsg>
<scriptname>/chat/src/proxies/lock.class.php</scriptname>
<scriptlinenum>35</scriptlinenum>
</errorentry>

<errorentry>
<datetime>2007-10-05 12:37:55</datetime>
<errornum>E_NOTICE</errornum>
<errormsg>Undefined index: sender</errormsg>
<scriptname>/chat/src/proxies/lock.class.php</scriptname>
<scriptlinenum>37</scriptlinenum>
</errorentry>


more notices from my php error handler are here:

http://chattest.jw-webdev.info/logs/2007-10-05.log
jwaldek
Member
 
Posts: 19
Joined: Thu Oct 04, 2007 8:37 am
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 20 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub