• 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

changeing channel, by it self!

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

Post a reply
10 posts • Page 1 of 1

Postby Eminos » Sun Mar 26, 2006 9:47 am

Hi there,

I just discovered one thing.
I emptyed the /data/private/chat directory. Flushed cash in browser. Started from scratch. The chat seemed to work fine and my messages.data, messages.index and nicknames folder were stored in the "root" (/data/private/chat).
BUT, after a while, not doing anything, just beeing idle on the chat (some other users came too) but these 2 files and the nicknames directory moved to the "mychat" folder !! .. like I have started an other channel !

Anyway, here is my config file, please take a look:

Code: Select all
<?php

require_once dirname(__FILE__)."/chat/src/phpfreechatconfig.class.php";
$params["serverid"]           = md5(__FILE__); // calculate a unique id for this chat

$params["language"] = "ba_BA";

$params["theme"]         = "bihinternet";

$ip = $_SERVER['REMOTE_ADDR'];
$params["nick"]               = $ip;
$params["prefix"]         = "myprefix_";
$params["frozen_nick"]    = false;     // do not allow to change the nickname
$params["shownotice"]     = 1;        // 0 = nothing, 1 = just nickname changes, 2 = 1+connect/quit
$params["max_nick_len"]   = 20;       // nickname length could not be longer than 10 caracteres
$params["max_text_len"]   = 200;      // a message cannot be longer than 50 caracteres
$params["refresh_delay"]  = 5000;     // chat refresh speed is 10 secondes (10000ms)
$params["timeout"]      = 60000;
$params["max_msg"]        = 13;       // max message in the history is 15 (message seen when reloading the chat)
$params["height"]         = "230px";  // height of chat area is 230px
$params["width"]          = "775px";  // width of chat area is 800px
$params["debug"]          = false;     // activate debug console
$params["debugxajax"]     = false;     // activate xajax debug (js popup)
$params["connect_at_startup"] = true;
$params["start_minimized"]    = false;
$params["nickmarker"]     = true;
$params["clock"]          = false;
$params["openlinknewwindow"] = true;
$params["btn_sh_whosonline"] = false;
$params["btn_sh_smileys"] = false;

// setup urls
$params["data_public_url"]   = "/chat/data/public";
$params["client_script_url"] = "./index.php";
$params["server_script_url"] = "./chat_server.php";
$params["themeurl"]          = "chat/themes";
$params["themeurl_default"]  = "chat/themes";

// setup paths
$params["container_type"]         = "File";

$params["container_cfg_chat_dir"] = dirname(__FILE__)."/chat/data/private/chat";

$params["server_script_path"] = dirname(__FILE__)."/chat_server.php";

?>

---

Maybe there was some "old" users that came back to my site so the mychat directory/channel was created becase they had that in their browser cashe ? (hope you understand what I'm trying to say .. it's to late for this :p)

/Eminos
Last edited by Eminos on Sun Mar 26, 2006 9:56 am, edited 1 time in total.
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby phpfreechat » Sun Mar 26, 2006 11:14 am

It's surrly due to a problem with session cache.
Wait and see if it is stabilized.

However, this parameters :
Code: Select all
$params["container_cfg_chat_dir"] = dirname(__FILE__)."/chat/data/private/chat";

is useless. It is automalicaly calculated by the File container and it depends on "data_private_path".
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Eminos » Sun Mar 26, 2006 8:18 pm

Ok, yet an other problem regarding this same matter is that the history (messages.data) is cleared when some old dude (from the old session/channel) connects.

Is there no way I can fix this? Force to use a certain channel ?

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Eminos » Sun Mar 26, 2006 8:34 pm

Now I added the channel parameter ,maybe there wont be any old session interference now ..

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Eminos » Sun Mar 26, 2006 8:37 pm

I have one other question also.

What is the difference when writeing a path in the config file, between these:

chat/data
/chat/data
./chat/data

and also, do I need to end the path with a slash ? Does it matter at all ?

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby phpfreechat » Sun Mar 26, 2006 9:23 pm

a unix path (or url) starting with :
- "/" is an absolute path
- "./" is a relative path

The tailing slash is not a problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Eminos » Sun Mar 26, 2006 9:35 pm

Ok.

Well, now when I have set the channel name parameter, a new folder is created in the /data/private (like it should be), and there seems to be ok, no other files and/or folder are automaticly created, so that's good.
BUT, the message history is still emptyed automaticly from time to time, and I don't know why :(

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Eminos » Mon Mar 27, 2006 3:20 am

Aaand, there it was again. A new channel created by it self. The default "mychat".

I don't know if this bug and the other one (auto-deleted history) are related, but it seems that it has something to do with the sessions/cashing.

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Eminos » Mon Mar 27, 2006 11:47 pm

I still have these two problems, and it's a real pain in the ass :( .. is there no way I can fix this ? .. like force all users to start a new session when connecting or something, I don't know ..

If not, is there a way to reinstall the chat, and in that way restart all the sessions, so that old visitors doesn't interfer with the chat .. ? I guess it wouldn't help just to reinstall the files in the same directory, maybe not even in some other directory ..

I just noticed that the messages.data file (the file that gets erased every once in a while) was NOT chmod 777. Only the "owner" had writeing permission. I changed to 777, maybe that will help .. I'm out of ideas now ..

[EDIT]
Ok, the "mychat" folder/channel beeing misteriously created, was maybe my stupidity .. I GUESS it was only me (or someone else) that entered that root demo folder/chat :D LOL .. And since I changed that fileproperties to chmod 777 I havn't had any problems so far .. hmm .. nice .. and weird at the same time :D

/E
Last edited by Eminos on Tue Mar 28, 2006 4:09 am, edited 1 time in total.
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top

Postby Eminos » Tue Mar 28, 2006 8:26 am

Ok, all my problems are back .. the 12*** Error, and the erasing history .. I guess I should wait and see if it becomes better after a while .. :(

/E
Eminos
Member
 
Posts: 61
Joined: Fri Mar 24, 2006 3:23 am
Top


Post a reply
10 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 29 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