* PFC Version: 1.3
* PHP Version: 5.2.17
* Shared or Dedicated Hosting: shared
* Link to your website:
http://www.catplace.net/writer/chat/ or http://catplace.net/awf/chat.php
* Are you able to reproduce the issue on the official demo? No, perhaps because ping times to the demo site are shorter.
* Have you set any parameters?
Yes, to link the chat to a PHPBB site.
I've tried adjusting the refresh_delay, refresh_delay_steps and timeout parameters, to no avail.
- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../phpbb/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
?>
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = " ";
//$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params["nick"] = $user->data['username'];
$params['firstisadmin'] = false;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
if ($user->data['group_id'] == 4 OR $user->data['group_id'] == 5) // Admins and Moderators
{
$params["isadmin"] = true;
}
$params['frozen_nick'] = true;
$params['admins'] = array('admin' => 'emergency');
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["channels"] = array('Off Topic','Writing');
$params["debug"] = false;
$params['skip_proxies'] = array('censor','noflood');
$params["theme"] = "awf";
$params["max_text_len"] = 2000;
$params["max_msg"] = 50;
$params["display_pfc_logo"] = false;
$params["refresh_delay"] = 4000;
$params["refresh_delay_steps"] = array(4000,20000,5000,60000,8000,300000,15000,600000,30000);
$params["timeout"] = 60000;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Australian Writers' Forum - Discussion</title>
</head>
<body>
<h1>Australian Writers’ Forum</h1>
<?php $chat->printChat(); ?>
</body></html>
* What is the issue you are experiencing in detail?
Users, especially those with slow connections, are frequently disconnected without notice. Those who remain connected see 'timeout' messages. Some examples:
- Code: Select all
08/07/2011 10:37:11 * Mike Murphy quit (timeout)
08/07/2011 10:45:32 * Mike Murphy quit (timeout)
08/07/2011 11:02:35 * Mike Murphy quit (timeout)
08/07/2011 11:09:59 * Mike Murphy quit (timeout)
08/07/2011 11:17:20 * Bex quit (timeout)
08/07/2011 11:19:56 * Mike Murphy quit (timeout)
08/07/2011 11:21:53 * Mike Murphy quit (timeout)
08/07/2011 11:24:07 * Mike Murphy quit (timeout)
08/07/2011 11:30:04 * Mike Murphy quit (timeout)
08/07/2011 11:33:34 * Mike Murphy quit (timeout)
01/12/2011 19:43:37 * ericsson joins Off Topic
01/12/2011 20:09:29 * PGB joins Off Topic
01/12/2011 20:22:29 * Peter McLennan joins Off Topic
01/12/2011 20:27:46 * PGB quit (timeout)
01/12/2011 20:30:35 * ElleyGirl joins Off Topic
01/12/2011 20:30:38 * PGB quit (timeout)
01/12/2011 20:31:26 * Greta joins Off Topic
01/12/2011 20:37:19 * PGB quit (timeout)
01/12/2011 20:42:26 * ericsson joins Off Topic
01/12/2011 20:43:59 * *Jessie* joins Off Topic
01/12/2011 20:44:22 * PGB quit (timeout)
01/12/2011 20:45:02 * *Jessie* quit (timeout)
01/12/2011 20:47:09 * Greta quit (timeout)
01/12/2011 20:50:41 * *Jessie* quit (timeout)
01/12/2011 20:52:29 * ericsson quit (timeout)
Note: none of these timeouts were the result of people leaving voluntarily.
I know this has been reported elsewhere, but I can't seem to find any solution.
I suspect the issue is related to long ping times (ie, several seconds), typical of slow connections. This may be why I can't duplicate the issue with the demo site. I've tried adjusting the refresh_delay, refresh_delay_steps and timeout parameters, to no avail.
* Are you seeing any error messages, such as javascript errors? No, the disconnected user sees nothing except the (static) chat, and other users see 'timeout' messages for the affected user.
Thanks!
Peter McLennan
Australian Writers' Forum Administrator