Closed (won't fix)
Project:
Chatroom
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2012 at 19:49 UTC
Updated:
23 Feb 2013 at 01:38 UTC
Jump to comment: Most recent
Comments
Comment #1
vhenninot commentedHello,
Same problem for me...
Thanks for your help,
Vincent
Comment #2
daniorama commentedSame problem for me. I know the server is working and I get from the log messages like this, but nothing is diplayed.
setContentToken: message { token: 'iLe7P3LXrueBPkMHanaoxsvSbaU7yjgU2dtKDcsP1zg',
channel: 'chatroom_2',
notifyOnDisconnect: true }
setContentToken iLe7P3LXrueBPkMHanaoxsvSbaU7yjgU2dtKDcsP1zg for channel chatroom_2
publishMessageToContentChannel: message { channel: 'chatroom_2',
callback: 'chatroomUserOnlineHandler',
data: { cid: '2', uid: '11', name: 'admintester' },
clientSocketId: '' }
Comment #3
langworthy commentedI currently have this problem when I haven't checked "Is this a public chatroom?" when creating new content.
Could this be the same problem?
Comment #4
daniorama commentedDon't know, I got the same problem either checking public or not...
Comment #5
Anonymous (not verified) commenteddaniorama and langworthy: can you try with the latest code from 7.x-2.x ? i've committed some changes from langworthy.
Comment #6
daniorama commentedI tried the new version and there are no changes... Right now it's a bit confusing...
What I did was create a new content type with a chatroom field. Then create a node with that content type. What I see is a a big box (I pressume that is where all messages should be) a smaller box below "Enter your message text here" and a chat button. I write a message in the smaller box, press chat and then the full pages reload and nothing changes. I got some data from node.js debug so it works. Something else is wrong:
setContentToken: message { token: 'Zxs5d-4vbnkRz8gUgipmd-NYzwpKvC3ptC4wvCwOT78',
channel: 'chatroom_3',
notifyOnDisconnect: true }
setContentToken Zxs5d-4vbnkRz8gUgipmd-NYzwpKvC3ptC4wvCwOT78 for channel chatroom_3
publishMessageToContentChannel: message { channel: 'chatroom_3',
callback: 'chatroomUserOnlineHandler',
data: { cid: '3', uid: '1', name: 'eladmin9' },
clientSocketId: '' }
Comment #7
Anonymous (not verified) commentedif the page reloads, there's a js error somewhere, because js should take over the submit on that form.
can you turn js debug in your browser and report back js errors?
Comment #8
langworthy commentedI no longer have the issue I did in #3. Things are working well for me.
Comment #9
pmaster4 commentedCan you please explain what you did to prevent the page from reloading and not displaying the data in the chat screen
Comment #10
langworthy commentedI just installed and configured nodejs.module and then added a chatroom field to a content type. Not really any other magic. I've created a simple distro for the use case I'm working on (multiple chat windows on the same page with panels). It might help you out. http://github.com/sprice/chat
Comment #11
pmaster4 commentedthanks i will check it out
Comment #12
boian.mihailov commentedi have the same issue, after submit page reloads, but no errors are shown in firebug.
I turned on nodejs debug and see some updates, which i don't really understand if the message actually is submitted to the node.
this is with the latest dev version
Comment #13
salientknight commentedSame problem and I get the following error:
Notice: Undefined property: stdClass::$name in chatroom_field_formatter_view() (line 221 of /var/www/roleplayingmarket.com/html/sites/all/modules/chatroom/chatroom.module).
Comment #14
carlhinton commentedI have the same problem
Comment #15
okday commentedsame problem here. the page reload and nothing in the chat room
Comment #16
andrea.brogi commentedMe too ......
Comment #17
iancsmith commentedI had the exact same problem. It's because your nodeJS server is not setup/configured properly.
Make sure the port nodeJS is listening on is open, also check to make sure socket.io is working:
http://nodejshost:port/socket.io/socket.io.js and that Drupal is loading it properly on the chat page.
Comment #18
HyperD commentedI got the same issue
but even installing node.js as in #10 and configuring it, it doesn't work.
I mean: I installed the node.js package, I edited it copying and paste the generated config, and I expected chatroom working.
It doesn't. I asked to the provider to open the port 8080 testing with the call http://nodejshost:port/socket.io/socket.io.js as in #17
the server is not found.
Is there something I missed please?
Comment #19
SMTF commentedI also have this problem. When I run
wget http://localhost:8080/socket.io/socket.io.json a machine with Drupal and Nodejs installed I receive the minified js file that I expect; however it could be that socket.io.js needs to run on the client machine which may explain why this could be the cause.
Comment #20
remon_m commentedI'm having the same problem! any news here?
Comment #21
remon_m commentedShould I run the command node server.js everytime before using chatroom?
Comment #22
remon_m commentedFinally I fixed this issue. The problem was in NodeJs configuration from Drupal. You cannot set it to localhost if you are requesting the chat pages from another hosts.
Comment #23
plato1123 commentedI see the config for node.js here, is this what needs to be done to fix this? I thought I was an experienced drupaler yet this is largely greek to me:
http://drupal.org/node/1713530 -- installation of nodejs
Are these really the steps that are needed? What about people that don't have shell access (luckily I do). Just seems like a bit much doing 15 server side steps to install a chat window.
Comment #24
Anonymous (not verified) commentedre #23, that's a fair comment. there are other chat modules that don't require node.js, so you should perhaps consider using one of those instead.