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
Comment #1
Pugs commentedChanged priority to critical since this issue renders the module unusable for my installation.
Comment #2
darren ohI can't reproduce this. Send me the URL and I'll check it out. In the mean time, there's two known issues:
Comment #3
Pugs commentedDarren,
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.
Comment #4
darren ohEach 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?
Comment #5
Pugs commentedDarren,
According to the shapshot.txt file, I'm using PHP 5.1.4.
Comment #6
darren ohFixed in CVS commit 66256.
Comment #7
Pugs commentedExcellent! Darren, thank you very much! The fix worked, and chat works great!
Comment #8
ajwwong commentedbizarre...
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
Comment #9
ajwwong commentedDon'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
Comment #10
ajwwong commentedsorry for the semi-double post... i was getting an error message from drupal.org and thought it wasn't taking my posts...
Comment #11
ajwwong commentedDrumroll 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
Comment #12
ajwwong commentedBTW, that error above comes from chatroom.js line 52
Comment #13
darren ohOpened issue 143333.