• 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

User list and window resize bugs in beta4

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

Post a reply
21 posts • Page 2 of 2 • 1, 2

Postby phpfreechat » Sat Sep 02, 2006 10:20 pm

Ok, I just take a look at your problem ...

I looked at the sent/received HTTP requests durring the /join command and durring typing messages.
The commands are well sent but the response is empty.

I the looked at the source code. I think the problem is when the default file container try to write the message in the files.
it is located in src/container/file.class.php :
Code: Select all
  function write($chan, $nick, $cmd, $param)
  {           
    $c =& $this->c;

    $msg_dir = ($chan != NULL) ?
      $c->container_cfg_channel_dir."/".$this->_encode($chan)."/messages" :
      $c->container_cfg_server_dir."/messages";
    // check the messages directory exists
    $errors = @test_writable_dir($msg_dir, $chan."/messages");

    // request a unique id for this new message
    $msg_id = $this->_requestMsgId($chan);
    $msg_filename = $msg_dir."/".$msg_id;

    // format message
    $data = "n";
    $data .= $msg_id."t";
    $data .= date("d/m/Y")."t";
    $data .= date("H:i:s")."t";
    $data .= $nick."t";
    $data .= $cmd."t";
    $data .= $param;

    // write message
    file_put_contents($msg_filename, $data);
   
    return $msg_id;
  }

I think there is a problem on this line :
$errors = @test_writable_dir($msg_dir, $chan."/messages");

The directories are certainly not created for unlit reasons.
I just patched the sources in order to take into account this returned $errors array.

So I suggest you to wait for the 1.0-beta5 (or download the lastest subversion revision) and see what errors it displays.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby shanek » Sun Sep 03, 2006 12:41 am

Well, I got adventurous, and got the latest subversion and put it up. It works like it did before, but the /join command still isn't working properly, and I seem to have lost my custom theme as well...
shanek
Member
 
Posts: 30
Joined: Mon Jun 19, 2006 2:22 pm
Top

Postby phpfreechat » Sun Sep 03, 2006 10:28 am

Ok... the problem seams to be elsewhere.

I noticed a strange behaviour :
on the demos, for example : http://www.guamislandchat.com/phpfreech ... simple.php
it works well
But it doesn't works on your installation.

Could you try to isolate the chat in a empty design (remove every guamislandchat images, scripts ans styles). Then look if it works.
Try also to remove one by one the chat parameters, maybe it should work like on the demo at one point.

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby shanek » Sun Sep 03, 2006 5:10 pm

I figured it out:

$params["max_msg"] = "0";

was causing it to fail. I changed it to:

$params["max_msg"] = "1";

and now it's working fine.

Thanks!
shanek
Member
 
Posts: 30
Joined: Mon Jun 19, 2006 2:22 pm
Top

Postby phpfreechat » Sun Sep 03, 2006 11:20 pm

ho I didn't notice that you used strings for these parameters !
I will add a check in the init step for the next release.

Could you try with that (note the removed quotes) ? :
$params["max_msg"] = 0;
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby shanek » Mon Sep 04, 2006 4:33 pm

Actually, it's been working with strings for other numbers..."5" will show the last 5 lines, "20" the last 20, etc. It's apparently only a problem with "0".

I changed it to 0, just the integer, and it works.
shanek
Member
 
Posts: 30
Joined: Mon Jun 19, 2006 2:22 pm
Top

Previous

Post a reply
21 posts • Page 2 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

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