• 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

Nick already in use

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

Post a reply
14 posts • Page 1 of 1

Postby pinup57 » Mon Apr 09, 2007 8:39 am

When I log in a guest, and choose a nick that was previously used already (even several days later, and several reboots of the client PC), I get the "this nick is already in use" prompt. If I click OK without changing that nick, I am correctly logged in, but I get a "you must be connected to post" message, although the icon shows the "connected status". But I CAN post, under the "already used" nickname.

So anyone can join and "steal" someones nick.....

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby pinup57 » Tue Apr 10, 2007 2:58 pm

Any suggestions on how to debug/fix this? It's a problem....

Thanks
Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Fri Apr 13, 2007 11:58 am

I'll try to reproduce the problem and to fix it in a few days.
Feel free to post other informations about the problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby pinup57 » Fri Apr 13, 2007 12:45 pm

Great, thanks.... I'm out of town for two/three days so I can't dig into this further, but I e-mailed you the address of the chat and created an account for you, so feel free to experiment there...

Great support, thanks

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Fri Apr 13, 2007 12:49 pm

I'm currently trying to reproduce this bug on the latest subversion trunk.
As I'm not able to reproduce the bug, please could you give me your complete parameter list ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Wed Apr 18, 2007 1:23 pm

pinup57 could you give me your complete parameter list, it will surely help me to debug the problem ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Sat Jun 30, 2007 7:36 pm

I'm sorry but I cannot reproduce the bug.
Please post more details and I will have a look.

I'm closing this bug in my todo-list.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Friedward » Fri Jul 06, 2007 9:24 pm

I have the same problem when I install the chat (10 or 11) on the Linux server it does not appear when I have in on my localhost (Windows XP) so it seems to be a rights problem, right? But the data directories are on 777.

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = "$_SESSION[username]";
$params["frozen_nick"] = true;
$params["channels"] = array('FlirtChat');
$params["proxies_cfg"]["censor"]["words"] = array("asshole","arsch","arschloch","bastard","bitch","cock","fick","freudenspender","ejakul","fotze","fuck","furz","damn","hure","kack","klitoris","masturb","moese","möse","muschi","neger","nigger","nutte","penis","pimmel","pimpern","porn","pussy","sex","shit","scheiß","scheiss","schlampe","schwanz","titte","verdamm","wichser");
$params["theme"] = "mytheme";
$params["serverid"] = md5(myChat);
$params["quit_on_closedwindow"] = true;
$params["timeout"] = 15100;
$params["height"] = "350px";
$params["language"] = "de_DE-informal";
$chat = new phpFreeChat( $params );

Regards,

Frank
Last edited by Friedward on Fri Jul 06, 2007 9:28 pm, edited 1 time in total.
Friedward
New member
 
Posts: 6
Joined: Fri Dec 01, 2006 3:17 pm
Top

Postby Friedward » Mon Nov 26, 2007 12:43 am

Hi all,

last time I went back to version beta9 but wanted to give it a new try with version 1.0 but still the same error occurred. If the second user wants to enter the Chat the message appears that this user is not allowed to change his nickname (nick is frozen) and he cannot enter. Here my code:

$params = array();
$params["theme"] = "mytheme";
$params["channels"] = array('FlirtChat');
$params["serverid"] = md5(FlirtChat); // calculate a unique id for this chat
$params["nick"] = $ChatNick; // "guest".rand(1,1000); // setup the intitial nickname
$params["frozen_nick"] = true;
$params["quit_on_closedwindow"] = true;
$params["timeout"] = 15100; // logout after X/1000 s of inactivity
$params["height"] = "350px";
$params["language"] = "de_DE-informal"
$chat = new phpFreeChat( $params );

I hope for your help,

thanks and regards,

F.
Friedward
New member
 
Posts: 6
Joined: Fri Dec 01, 2006 3:17 pm
Top

Postby phpfreechat » Mon Nov 26, 2007 11:12 am

it depends on the value of $ChatNick
Are you sure this variable value is different for each users ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Friedward » Mon Nov 26, 2007 11:37 am

Hi kerphi,

yes I am sure. The chat opens in a new window where the URL contains a session id (www.mydomain.com/chat/index.php?sid=b72 ... fb5a8df3c4)

The $ChatNick I take from one of the session vars and is different for every user.
Meanwhile I read many articles and found a similar problem in
http://www.phpfreechat.net/forum/viewtopic.php?id=1441

I tried with:
$params["server_script_url"] = "./index.php";

but then a endless loop of "Chat is loading" appears.
Friedward
New member
 
Posts: 6
Joined: Fri Dec 01, 2006 3:17 pm
Top

Postby phpfreechat » Mon Nov 26, 2007 2:13 pm

Friedward, I added a dyn_params parameter in the 1222 revision. This parameter will help you to disable cache for server_script_url.
For your information, server_script_url parameter is used for the periodic ajax calls.

Currently, this parameter is stored in the cache so its value is the same for every chatters. As you use session with SID, you need to define a different server_script_url for each users but it is not possible before 1222 revision.
So wait for the next release (or checkout the trunk from subversion), and do something like that:
$params["dyn_params"] = array("server_script_url");
$params["server_script_url"] = "./index.php?sid=".session_id();

I hope it will fix the problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Friedward » Mon Nov 26, 2007 10:19 pm

Hi Stéphane,

ok, I go back to beta 0.9 again :-( and hope the next release is coming soon and solves my problems :-)

Thanks for your support...by the way, it´s a great piece of software you made up here :-)

Regards,

Friedward
Friedward
New member
 
Posts: 6
Joined: Fri Dec 01, 2006 3:17 pm
Top

Postby Friedward » Wed Feb 06, 2008 11:13 am

Hi Stéphane,
because I had to set up my chat again I tried the way you described above with the 1222 revision.

What now happens is, that I can log in but cannot submit any text and also cannot see messages or the userlist. The error which I get is:
pfc_server_script_url is not defined - pfcclient.js (line 1041)
url = pfc_server_script_url;

It would be great if you could help please.

Regards,
Friedward

###################
Meanwhile I solved the problem pragmatically by copying the pfcclient.js into the index.php and setting the url dynamically:
var url = "<?="./index.php?sid=".session_id()?>";

But I would still prefer a more elegant solution...

Friedward
Last edited by Friedward on Thu Feb 07, 2008 11:16 am, edited 1 time in total.
Friedward
New member
 
Posts: 6
Joined: Fri Dec 01, 2006 3:17 pm
Top


Post a reply
14 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

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