I am running the current version of drupal 6 and the chat does not update, i.e. if user a enters a message then it does not appear on users b screen until use b is enetering its own message. I used firefoy and safari to check the module, javascript is enabled.

Also I get the following error message: warning: file_put_contents(/tmp/chatroom.chat.4201.cache) [function.file-put-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\np\sites\all\modules\contrib\chatroom\chatroom.module on line 895.

I had a look at the code and it seems that the module does not make use of drupal's standard tmp directory but uses its own tmp-filepath that is possibly not correctly configures. Maybe chatroom.module could use the drupals sitewide settings?

Comments

Anonymous’s picture

Assigned: Unassigned »

thanks for the report, i've committed:

http://drupal.org/cvs?commit=288100

to fix the temp directory path.

is suspect this code:

if (!isset($_POST['chat_cache_directory']) || !is_dir($_POST['chat_cache_directory'])) {
  exit;
}

is causing the non-update behaviour - directory doesn't exist, so chatroomread.php just exits.

please test with the latest cvs, which will hopefully fix your issue.

i guess i might need to revisit that check just silently exiting.

Docc’s picture

Same problem here, latest dev

Shouldnt the url point to the module directory for chatroomread.php instead of basepath? "url: Drupal.settings.basePath + 'chatroomread.php'"
I have also the problem of the tmp directory. Could be a local problem though.

Anonymous’s picture

Docc: chatroomread.php needs to be copied into the base directory next to index.php, as the README.txt explains. do you still have the /tmp issue even with the code that uses drupal's configured tmp directory?

Docc’s picture

hmz typical example of RTFM. All works well know. You can close this issue.

Anonymous’s picture

Status: Active » Fixed

thanks :-)

Anonymous’s picture

Status: Fixed » Closed (fixed)