The function is looking for "files/phpfreechat/chat/[chatname]chat/" but when I look on the server the chat folder name is a randomly generated string "files/phpfreechat/chat/s_f850aacbeefe2d2fbf9db65fac641ed8" is the chat room it's really looking for, so I get this error.

* warning: touch() [function.touch]: Unable to create file files/phpfreechat/chat/[chatname]chat/messages.data because No such file or directory in /home/imedi4/public_html/strippersociety/modules/phpfreechat/phpfreechat.inc on line 69.
* warning: touch() [function.touch]: Unable to create file files/phpfreechat/chat/[chatname]chat/messages.index because No such file or directory in /home/imedi4/public_html/ss/modules/phpfreechat/phpfreechat.inc on line 70.

No harm done since it's not doing anything and only admins see it I think? Maybe its just the same code from the last version of phpfreechat and they changed the functions, or maybe I don't have the right version, but I downloaded 1.0 - Beta 9 from Source Forge and 5.x-1.x-dev here, is that the latest CVS?

Comments

owen barton’s picture

Yes - the phpfreechat internal directory layout has changed and I haven't got around to updating this code yet.

If you have time to make a patch for this it would be gladly accepted :)

WhatTheFawk’s picture

If this is only supposed to clear the log file then I can write a patch, I got mine successfully clearing chat.log which is the new log file. But is this function also supposed to clear the chat for everyone? Deleting the log file doesn't clear the chat cache/old messages. That's a little harder I can't figure out how to get to some of the functions like rmMeta() in phpFreeChat's pfccontainer.class.php I asked on the site though and if I get a response I'll try to add that in.

Basically just want to know if the function is only supposed to clear the chats log file or also clear the files that would completely make the chat new again for anyone visiting so they don't see previous messages.

owen barton’s picture

The intended function was to clear the chat history, so that any new users coming to the chat do not see the chats (in case someone posted something that the site admins do not want on their site). I don't think it is possible to clear the local cache for users who were already chatting (although I could be wrong here!).

permutations’s picture

Version: 5.x-1.x-dev » 5.x-1.2
Status: Active » Closed (fixed)

The original bug reported here was fixed in the version I just uploaded, 5.x-1.2.

But there's another issue about whether the logs are doing what they're supposed to be doing. Someone else reported that:

http://drupal.org/node/198128

I'll post the link to this issue on the other one and close this one.

yashraj’s picture

Component: Code » Documentation
Assigned: Unassigned » yashraj
Category: bug » feature
Priority: Normal » Minor
Status: Closed (fixed) » Active

hii alll

jewseppi’s picture

I posted a solution, scroll to the bottom

http://drupal.org/node/568014