I know that this issue has been addressed before. I wasn't sure if the protocol was to reopen the previous issue or open a new one, so I chose the latter.

I am running Drupal 4.7.x on an IIS 6.0 server. Today I downloaded and installed the Chat Room Module and now have the issue of text not showing up in the chat window when you hit the "Send" button. When you leave the chat and go back in, you are not shown any messages, but it appears that the messages are being created because the message count increases.

IE7 reports an error on the page and gives the details as follows:

Line: 53
Char: 5
Error: Expected ';'
Code: 0
URL: http://mywebsite/index.php?q=chatrooms/chat/3

I've tried the fixes from the previous issue, but still have not been able to get Chat Room to work.

Any help is much appreciated. Thanks!

Comments

Pugs’s picture

Priority: Normal » Critical

Changed priority to critical since this issue renders the module unusable for my installation.

darren oh’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this. Send me the URL and I'll check it out. In the mean time, there's two known issues:

  • There is a bug in Drupal version 4.7.6 and below which prevents chats from working properly. Are you using the development snapshot of Drupal?
  • The Drupal 4.7 branch of Chat Room will not work if it is installed outside the Drupal directory and accessed by a symlink.
Pugs’s picture

Darren,

I am not using the development snapshot of Drupal. The Chat Room module is installed in c:\inetpub\wwwroot\modules\chatroom, where c:\inetpub\wwwroot is the Drupal installation directory.

I sent you a private message with the URL of the site where I'm experiencing this problem.

darren oh’s picture

Each response from your site ends with

PHP Notice: Undefined variable: smileys in c:\Inetpub\wwwroot\modules\chatroom\chatroomread.php on line 164

My version of PHP has no problem with this. What version are you using?

Pugs’s picture

Darren,

According to the shapshot.txt file, I'm using PHP 5.1.4.

darren oh’s picture

Assigned: Unassigned » darren oh
Status: Postponed (maintainer needs more info) » Fixed

Fixed in CVS commit 66256.

Pugs’s picture

Excellent! Darren, thank you very much! The fix worked, and chat works great!

ajwwong’s picture

Status: Fixed » Active

bizarre...

I am seeing this same behavior here... where this enoromous loop of error messages was coming out... basically once every second or so...
[Fri May 11 10:54:21 2007] [error] [client 65.100.32.227] PHP Notice: Undefined
variable: smileys in /home/ithou/public_html/modules/chatroom/chatroomread.php
on line 164, referer: http://www.ithou.org/lodge

I applied the fix... to chatroomread.php I'm not sure if it did anything.... though I'm not seeing this error message any more.

[I'm working off of a 4.7 platform incidentally, with the mod to common.inc as recommended]

The weird thing is that one chat will be broken but another chat will be working... [for example... at least at this moment this chat is broken:

www.ithou.org/Big_House

but this one works...

www.ithou.org/lodge

[Though... honestly... by the time you read this message the Big_House chat might open up again....... 'cause it mysteriously seems to reset itself... every hour or so? Not sure how... at least it has done so in the past.... ]

It is kind of strange that one chat might be working, while the other one is shut down...

Thanks for your help...

Blessings,
Albert

ajwwong’s picture

Don't know if this is related or separate... but I was seeing this also in my logs...

[Fri May 11 10:00:00 2007] [error] [client 68.183.91.40] PHP Notice: Undefined
variable: smileys in /home/ithou/public_html/modules/chatroom/chatroomread.php
on line 146, referer: http://www.ithou.org/lodge
[Fri May 11 10:00:01 2007] [error] [client 65.100.32.227] PHP Notice: Undefined
variable: smileys in /home/ithou/public_html/modules/chatroom/chatroomread.php
on line 164, referer: http://www.ithou.org/lodge
[Fri May 11 10:00:01 2007] [error] [client 65.100.32.227] PHP Notice: Undefined
variable: smileys in /home/ithou/public_html/modules/chatroom/chatroomread.php
on line 146, referer: http://www.ithou.org/lodge
ETC...

and applied this... patch... and this error message has gone away....

*However*....

I have a site where chats intermittently and *independently* crash.... where *one* chat will work and the *other one won't*... though it changes 'cause every chatroom seems to get reset every hour or so back to working?

currently doesn't work: www.ithou.org/Big_House
currently does work: www.ithou.org/lodge

Newly formed chats seem to work...
and the Big_House chat might reset itself soon...
but then after a period of use will crash....
as will the "lodge" chat...

any thoughts?

Can't seem to figure it out....

Thanks,
Albert

ajwwong’s picture

sorry for the semi-double post... i was getting an error message from drupal.org and thought it wasn't taking my posts...

ajwwong’s picture

Title: Text does not appear in the chat window » Double quotes in the chatroom cause it to lock up

Drumroll please.....

I figured it out!!!! [or at least how to replicate this]

When someone uses double quotes!!! it BREAKS the chat....

try it out...

but then... when the window gets flushed... another 10 lines of someone test entering into the text box... eventually the double "quotes" get flushed out of the window... and the chatroom revives... Ding ding ding...

Now... if I only knew how to fix it :-)

It seems related to this JS error in www.ithou.org/Big_House

missing } after property list
[Break on this error] [{msgs:[{id:1282,text:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",user:"xxxxxx",ti...
ajwwong’s picture

BTW, that error above comes from chatroom.js line 52

darren oh’s picture

Title: Double quotes in the chatroom cause it to lock up » Text does not appear in the chat window
Status: Active » Closed (fixed)

Opened issue 143333.