Hello!

I post this issue because I think there is a bug or something I cannot understand.
When I click on the link: "Clear chat log for ---" the browser redirect me to front page. Also if I return to the chat nothing was deleted.

The link calls the menu hook: "phpfreechat/nuke/".arg(2) , but it is not clear what is meant to do. The link is formed with the chat name parameter, but the callback function that receives the call: phpfreechat_nuke expects a rid (Room id).

Also the last function that actually perform the cache clear, performs several file delete over files that actually doesn't exists: messages.data or messages.index and commits a redirect (drupal_go_to('')) to the front page.

I think that the functionality of that link is to clear the chat screen of the current chat, which is really very useful.
I see some of inconsistence on the code so I was afraid to touch it... I will be very glad to help solving this as far as I can, but I need some help.

Thanks for all
Roberto (Hope you understand my English).

Comments

owahab’s picture

Version: 5.x-1.0-rc3 » 5.x-1.0-rc4
Assigned: Unassigned » owahab
Status: Active » Postponed (maintainer needs more info)

Roberto,
Now worries man, nothing wrong with your English :)

I totally confirm all you mentioned, yet (if you realized) the module doesn't work out of the box for many people and this is higher priority.

The fix for this bug will be shipped with the next RC.

owahab’s picture

Status: Postponed (maintainer needs more info) » Active

Roberto,
Now worries man, nothing wrong with your English :)

I totally confirm all you mentioned, yet (if you realized) the module doesn't work out of the box for many people and this is higher priority.

The fix for this bug will be shipped with the next RC.

permutations’s picture

I've noticed that while "clear log data" doesn't actually clear the log data, it does successfully jolt the chat our of "chat loading, please wait" (which is useful - but doesn't match the label). I need to take a look at what it's doing.

Note that there is a new version of the phpFreeChat module (1.2) that fixes many bugs. I didn't touch the "clear log data" code, though.

permutations’s picture

Version: 5.x-1.0-rc4 » 5.x-1.2
Assigned: owahab » permutations

Another thread about this with additional info:

http://drupal.org/node/121744

Leeteq’s picture

Subscribing.

phKU’s picture

subscribe

juroon’s picture

Same problem here.

2006drupal’s picture

subscribe
I meet the same problem with phpfreechat6.1 - Clear log data doesn work as espected

jewseppi’s picture

I posted a solution, scroll to the bottom

http://drupal.org/node/568014