• 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

getOnlineNick does not work every time?

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

Post a reply
2 posts • Page 1 of 1

Postby hotzenplotz » Thu Mar 26, 2009 11:23 am

Hi,

I'm using pfc 1.2 and have created one chat with some channels. At time I'm the only person logged into chat. On my site there is the following code

require_once "/var/www/web/inc/phpfreechat/src/pfcinfo.class.php";
$info=new pfcInfo(md5("mschat"));
$users=$info->getOnlineNick(NULL);
print_r($users);

Sometimes the $users array is empty. There is no way for me to reproduce this failure and it seems to appear only when one person is in the chat. I found this "bug" when often pressing F5 in FireFox. Is there something I can do to find the reason for this failure?

Nico
hotzenplotz
 
Top

Postby Korben » Fri May 15, 2009 7:51 pm

hello,

I testted the Method too and maybe this is a hint for debugging:

If testing the Method with:
error_reporting(E_ALL | E_STRICT);

there will be an error undefined childs or undefined SERVER depending wether the first param is NULL or at name of a chat

Horst
Korben
New member
 
Posts: 2
Joined: Wed May 13, 2009 1:43 pm
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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