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

Timeout issues

Integration help for Joomla, Drupal, and Wordpress

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

Post a reply
10 posts • Page 1 of 1

Postby Tal » Sun Sep 20, 2009 7:30 pm

PFC Version: 1.2
PHP Version: unknown (latest I believe)

Shared or Dedicated Hosting: shared
Link to your website: will provide via PM if required

Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)? It doesn't relate to me personally so no.

Have you set any parameters? If so, please include your code. No but I'm using the wordpress plugin.

What is the issue you are experiencing in detail?

Some of my users are getting timed out every minute or so even when they're active in the chat. Once the time out they have to refresh the page in order to be able to post in the room. This is the only real issue I'm having and I would really like to get it resolved before I have a celebrity guest join a chat session in a couple of weeks.

I tried adjusting the timeout length but it hasn't made any difference.

There doesn't seem to be any one particular browser at fault, some are using FireFox and some IE

Are you seeing any error messages, such as javascript errors?

no visible errors.
Last edited by Tal on Sun Sep 20, 2009 7:31 pm, edited 1 time in total.
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby Frumph » Mon Sep 21, 2009 5:57 am

Hrm. This is core phpfreechat issue yeah, not with the plugin itself.

The params code looks like this:

Code: Select all
      $params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
      $params["title"] = $options['chatname'];
      if (!empty($user_name)) {
         $params["nick"] = $user_name;
      }
      $params["isadmin"] = false; // do not use it on production servers ;)
      if ( current_user_can('manage_options') ) $params['isadmin'] = true;
      $params["serverid"] = $options['serverid']; // calculate a unique id for this chat
      // setup urls
      $params["data_public_url"]   = get_bloginfo('siteurl')."/wp-content/plugins/phpfreechat/data/public";
      $params["server_script_url"] = get_bloginfo('siteurl')."/wp-content/plugins/phpfreechat/chat.php";
      $params["theme_default_url"] = get_bloginfo('siteurl')."/wp-content/plugins/phpfreechat/themes";
      $params["theme"] = $options['theme'];
      // admins
      $params['admins'] = array('admin'  => $options['adminpassword']);
      // setup paths
      if ($options['method'] == 'mysql') {
         $params["container_type"] = "mysql";
         $params["container_cfg_mysql_host"]     = DB_HOST;                     // default value is "localhost"
         $params["container_cfg_mysql_port"]     = '3306';                     // default value is 3306
         $params["container_cfg_mysql_database"] = DB_NAME;                     // default value is "phpfreechat"
         $params["container_cfg_mysql_table"]    = $table_prefix . 'phpfreechat';   // default value is "phpfreechat"
         $params["container_cfg_mysql_username"] = DB_USER;                     // default value is "root"
         $params["container_cfg_mysql_password"] = DB_PASSWORD;                  // default value is ""
      } else {
         $params["container_type"]         = "file";
         $params["container_cfg_chat_dir"] = dirname(__FILE__)."/data/private/chat";
      }
      if (empty($options['language'])) $options['language'] = 'en_US';
      $params["language"] = $options['language'];
      // Channels
      $channel_one = $options['channelname'];
      $channel_two = $options['channelnametwo'];
      $params["channels"] = array($channel_two,$channel_one);
      $params["quit_on_closedwindow"] = true;
      if ($options['ping'] == '1') { $params['display_ping'] = true; } else { $params['display_ping'] = false; }
      if ($options['flood'] == '1') $params['skip_proxies'] = array('noflood');
      if ($options['debug'] == '1') { $params['debug'] = true; } else { $params['debug'] = false; }
      if ($options['clock'] == '1') { $params['clock'] = false; } else { $params['clock'] = true; }
      if ($options['censor'] == '1') { $params['skip_proxies'] = array('censor'); }
            
      $params['short_url'] = false;
      $params['showsmileys'] = true;

Something to remember with the wodpress plugin is that the changes you make to chat.php have to also be inside phpfreechat.php, there are 2 segments one for initialization and the other for the refresh, that's how I got around the scripting embedding to make it work right.


-- mr. oldwolf requesting this to be put into the wordpress forum area please =)
Last edited by Frumph on Mon Sep 21, 2009 6:00 am, edited 1 time in total.
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby OldWolf » Mon Sep 21, 2009 8:47 am

Granted. :)
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 Tal » Mon Sep 21, 2009 9:00 am

OK - I have no idea what that code is about........is it even related to the timeout problelm? And if it's not related to the wordpress plugin, why move it to the wordpress section? Sorry, I'm a bit confussed
Last edited by Tal on Mon Sep 21, 2009 9:02 am, edited 1 time in total.
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby OldWolf » Mon Sep 21, 2009 6:24 pm

The code IS related to wordpress, he's offering you a better solution. The problem itself isn't wordpress related, but the solution he's providing is.
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 Tal » Mon Sep 21, 2009 7:02 pm

In that case, I appreciate the help, though the talk about it being a "core phpfreechat issue " made it sounds like it wasn't anything to do with wordpress.

Now that that's cleared up, just posting a bunch of code doesn't help me, I don't know what to do with it and would appreciate further instruction.

Thanks
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Postby Frumph » Mon Sep 21, 2009 7:51 pm

Actually .. my bad completely, in your original post you said you didn't know what the params were.. I just provided how the params and what params were being assigned to see if someone who knows the core code could decipher what the problem could be in association with the timeout issue.

Me? I think it has to do with your phpfreechat.php and chat.php not having the same code inside it.

- Phil
Frumph
Member
 
Posts: 38
Joined: Wed Aug 05, 2009 10:47 am
Top

Postby OldWolf » Tue Sep 22, 2009 1:50 am

Guess I should have read through the solution before I just took your word for it Frumph. :P
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 Tal » Wed Sep 23, 2009 3:18 pm

OK - so I'm still left with this timeout issue - is there anything I can do to fix it?
Tal
Member
 
Posts: 13
Joined: Thu Sep 10, 2009 1:43 pm
Top

Re: Timeout issues

Postby Craig » Mon Nov 05, 2012 9:33 pm

Did you ever get this working? I have some people getting timeout errors too, even though they just posted a message two seconds before. This chat is amazing apart from this issue.
Craig
Member
 
Posts: 14
Joined: Mon Oct 29, 2012 9:48 pm
Top


Post a reply
10 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

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