Closed (fixed)
Project:
Chatroom
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Mar 2007 at 09:27 UTC
Updated:
30 Mar 2007 at 14:32 UTC
Jump to comment: Most recent file
Hi,
I just installed chatroom on drupal 5.1, apache 1.3, mysql 5.0, php 4.4.4, and try to access is through firefox 2.0.0.1. I applied this patch too: drupal_to_js-array-DRUPAL-5.patch. I can configure the chatrooms ok, but when I'm in a chat I can't send text. Pressing enter or clicking on send does nothing.
When entering the chat, the error console show:
Warning: Error in parsing value for property 'display'. Declaration dropped.
Source File: http://XXX/modules/system/defaults.css
Line: 43
Warning: Unknown property 'filter'. Declaration dropped.
Source File: http://XXX/sites/all/modules/imce_gallery/imce_gallery.css
Line: 17
Did I do something wrong ?
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | chatroom_11.patch | 49.11 KB | darren oh |
| #17 | chatroom_10.patch | 31.24 KB | darren oh |
Comments
Comment #1
xav commentedComment #2
darren ohThis was working for me two days ago, but after I emptied my database and reinstalled Drupal yesterday, it no longer worked. I did find a problem with the capitalization of Drupal.JsEnabled, which is fixed in CVS commit 59952.
Comment #3
xav commentedI applied you patch, but that didn't fix it for me.
Do you have any direction for me to help find the problem ?
Comment #4
darren ohIt's not fixed for me either. Execution of chatroom.js stops on line 598.
Comment #5
darren ohIf you would like to help fix this, try replacing misc/jquery.js with the uncompressed jQuery library at http://jquery.com/src/jquery-1.0.js so you can see the code being run. I'm finding that execution is aborted on line 914.
Comment #6
darren ohI eliminated some Drupal 4.7 JavaScript commands in CVS commit 60009 (the commit somehow got combined with someone else's unrelated commit). Messages now appear. The away and back status is not shown.
Comment #7
xav commentedI'm not sure I understand you very well ... do you mean I have to apply commit 60009 to fix it ?
Comment #8
xav commentedI just applied it, and now the messages look like they are sent (they disappear from the line), but nothing appears in the big chat window (and the chatroom summary says the chat has 0 messages).
Comment #9
xav commentedBTW, with the uncompressed jQuery, I get something like 'jQuery not defined' in the javascript console, and some things don't work. I replaced it with the compressed one, and now the error I've got is:
The line 661 is " chatroom.hasfocus = false;" in chatroomFocusHandler(e).
Comment #10
darren ohTry emptying your cache and restarting your browser. It was probably some old JavaScript files in my cache that made it seem to work at first.
Comment #11
xav commentedNope, still nothing. Does it work with stock 5.1 for you ? Maybe I have some parasitic modules ...
Comment #12
darren ohNo, it won't work with Drupal 5.1 without some modification. There is a link to a patch on the Chat room project page. The next version of Drupal will work without modification.
Comment #13
darren ohAfter commit 60252, the code in CVS seems to be working. I'd like some confirmation to be sure. Please be thorough. To test the code,
Comment #14
xav commentedIt still doesn't work. It looks like the text is sent, but nothing arrives to the server (in the log, I can only see series of successful POST /sites/all/modules/chatroom/chatroomread.php).
I went as far as disabling a series of unrelated modules (they showed some CSS warnings in the error console), and I even tried with IE to be sure (that one had certainly nothing is the cache, it was its 1st time on internet).
BTW, when I tried with 'links' (textmode, no javascript), sending a line made it POST /search/node - that doesn't look good. But then, I suck at javascript, so I don't know how all this is intended to work.
Comment #15
xav commentedBTW, here is an excerpt from the generated code ("show source" from the browser):
(Still from a javascript-ignorant guy) how can that send something to the server ?
Thanks,
Xav
Comment #16
darren ohThe JavaScript is in a separate file. Elements on the page have IDs so the JavaScript file knows what to do with them.
Comment #17
darren ohHere's a patch that will bring the first release up-to-date with CVS.
Comment #18
xav commentedAfter digging further, it finally looks like the message makes it to the server. Here is what a tcpdump capture gives me (hostname is edited, only the 3 interesting packets are there):
How can I trace that inside Drupal now ?
Thanks
Xav
Comment #19
darren ohA development snapshot should be available on the project page soon. Please use it for testing.
Comment #20
darren ohXavier, the best tool for seeing what is happening is Firebug, a Firefox add-on. You can inspect your scripts and variables, see what is being sent and received, and make live modifications. If you give me access to your chat room, I could check what's happening for you.
Comment #21
xav commentedOK, I've sent you the address by mail.
Thanks Darren,
Xav
Comment #22
sean2000 commentedI uninstalled the previous chatroom and installed the dev snapshot at http://drupal.org/node/127182 and I still can't send text. Anything I can do to help? I am moderately familiar with javascript.
Comment #23
xav commentedThanks to Darren's debug version, I found the problem: my sites/ directory is in fact a symlink to somewhere else, and chatroom's code tries to go back to drupal's root by doing '..' and ends up in the wrong directory.
Of course, as it does chdir() before bootstrapping drupal, it doesn't have the convenience functions to find the root easily by itself. I wonder though if there's a proper means of doing that ?
Comment #24
darren ohI fixed this in CVS commit 60575 by sending the absolute filesystem path to the Drupal root directory with each update request. The attached patch brings release 5.x-1.0 up to date.
Comment #25
xav commentedOK, that works now.
Thanks Darren !
Xav
Comment #26
paulos commentedI have the same problem however I am unable to add a patch to my server. The only way to access my files is through the webservers broswer interface and there is no place to apply a patch. If you have the same issue how would you fix it?
Paul
Comment #27
darren ohThis patch does not apply to the 4.7 version. Your problem seems to be that you are not using the latest 4.7 release.
Comment #28
skizzo commentednot sure if it's the same problem: everything worked fine for the first 4 messages,
but then stopped displaying msgs (counter and "Last message" are correct, but only
first 4 messages show up in the chat). Any other patch that I should install? Thanks.
Drupal 5.1
chatroom-5.x-1.1
drupal_to_js-array-DRUPAL-5.patch
Firefox 1.5.0.10
Comment #29
gurukripa commentedhi
i am using the chat room module you have released with Drupal 5.1
it doesnt work...dunno how to apply patches etc..
could u kinldy put up the higher version...or tell me what to do..thanks
Comment #30
darren ohPlease do not add new issues to an old issue.
Comment #31
darren ohPlease do not add new issues to an old issue.