I want users to fill out a small form and then rules CREATES a chat and then redirects them to that chat. Everything works fine except when you start to chat. When you chat the other person doesn't see the chat until they type something and then press enter. This is very similar to when you install the module chat and then don't include the chatroomread.php in the main directory where the index.php is. This fix would mean everything as I can't do this any other way and have spent days on trying to become creative to make this a seamless and user friendly chat within a website with our company structure. HELP. Thank you again for your help.
Comments
Comment #1
Anonymous (not verified) commentedThomas, can you show me a site with this problem?
can you show me the code that creates the chat?
i need more info to figure this out.
Comment #2
Thomas Rendleman commentedyes.
Do you want a video?
Comment #3
Thomas Rendleman commentedI am making right now. Thank you for your quick help.
Comment #4
Anonymous (not verified) commentedThomas, video is good, pastebin of code that is run to create the chat nodes would be very useful as well.
Comment #5
Thomas Rendleman commentedJustin Randell? Are you in the US?
Video is rendering....
Comment #6
Thomas Rendleman commentedI am using the basic chat node. Nothing added.
There is really no code just trying to create the content and have it function after being created. In the video there are two windows open when I type in one the other one doesn't receive it until they start typing and hit enter then they see the other chatter's comments.
Comment #7
Thomas Rendleman commentedI am using the basic chat node. Nothing added.
There is really no code just trying to create the content and have it function after being created. In the video there are two windows open when I type in one the other one doesn't receive it until they start typing and hit enter then they see the other chatter's comments.
Comment #8
Thomas Rendleman commentedI can't tell if the upload took. If not I will put on a server and send you a link. I will be watching for your response. Thank you very much.
Comment #9
Thomas Rendleman commentedgygaxi.com/sites/default/files/video.mp4
Comment #10
Anonymous (not verified) commentedok, a few of questions:
- do chats created using 'node/add/chat' have the same issue?
- does the chat module live at 'sites/all/modules'? if not, have you set $conf['chatroom_module_dir'] to point to the install directory?
- the video showed the same user in the same chat in two different browsers. does the problem exist if you have two different users?
Comment #11
Thomas Rendleman commentedQ - do chats created using 'node/add/chat' have the same issue?
A - No when they are created without the rules then it works perfect.
Q - does the chat module live at 'sites/all/modules'? if not, have you set $conf['chatroom_module_dir'] to point to the install directory?
A - gygaxi.com/sites/all/modules/chatroom is where the module is
Q - the video showed the same user in the same chat in two different browsers. does the problem exist if you have two different users?
A - I have tried it with two users with different IPs and the same issue occurs.
I tried a number of different scenarios and even tried with anonymous and permissioned users.
I have tried all options that I could think of. All have the same result. Any rules created chat or chatroom will have the same effect.
Comment #12
Anonymous (not verified) commentedThomas thanks for the replies and the report, i can reproduce this with stock rules + chatroom.
the rules-created chats just don't poll, trying to figure out why now.
Comment #13
Anonymous (not verified) commentedversus
Comment #14
Anonymous (not verified) commentedcommitted a fix here:
http://drupal.org/cvs?commit=390182
please update the module to 6.x-2.x-dev and reopen this issue if it still doesn't work for you.
i have a couple more bugs to squash before i'll release 6.x-2.10, should be later on in the weekend.
Comment #15
Anonymous (not verified) commentedComment #16
Thomas Rendleman commentedThank you for your help. I will let you know tonight.
Comment #17
Anonymous (not verified) commentedplease set back to active if it doesn't work.
Comment #18
Thomas Rendleman commentedBad news. It isn't working with the new dev.
Comment #19
Thomas Rendleman commentedDoing the same thing unfortunately. I do appreciate the time you put in. I wish I knew more about the system so I could help...
Comment #20
Anonymous (not verified) commentedcan you be more specific?
did you create new chats, or just check existing ones? existing ones need to be edited then resaved, then they should start working.
can you paste the Drupal.settings js from the chats that don't work, like i did in #13?
Comment #21
Thomas Rendleman commentedWorse news. It doesn't work even when manually I create chat. Even when it is created manually the behavior is the same.
Comment #22
Thomas Rendleman commentedAll are new chats, manually and rules created all have the delayed behavior
Comment #23
Anonymous (not verified) commentedcan you post the js i asked for?
what happens if you edit then save the chats?
Comment #24
Thomas Rendleman commentedI am not sure how to do #13.
I just deleted the chatroom I had and replaced with the dev.
Comment #25
Anonymous (not verified) commentedok, bear with me :-)
first, go to admin/settings/performance and clear all the caches.
then, please take an existing chat, edit it, and save it. you don't need to change anything, just edit then save.
to get the javascript, view the source of the page, and look for a line like:
jQuery.extend(Drupal.settings ...
and copy and paste that here.
Comment #26
Thomas Rendleman commentedSorry it took so long. Doing right now. The internet is off and on...
BRB
Comment #27
Thomas Rendleman commentedI am using a domain module. It wouldn't allow me to EDIT and then save without choosing a domain to save under. This is what it said when saving "Publish to field is required.". So I picked gygaxi.com which is the main domain and saved. Here is a cut and paste of the code
Comment #28
Thomas Rendleman commentedIt didn't show a copy of it. Try this http://gygaxi.com/content/staff-chat-0?500908974=1
Comment #29
Anonymous (not verified) commentedtried your link, and i get a "500 Internal Server Error" from chatroomread.php.
Comment #30
Thomas Rendleman commentedThanks for trying. I will remove the module and try to reinstall. If that doesn't work I will try to remove all the sound file includes and if that doesn't work I will need to do without chat. My deadline is far past due. Thank you again for your time and patience. You are very generous to do as much as you did.
Comment #31
Anonymous (not verified) commentedno worries, good luck. please reopen if you can find out what the issue was.
Comment #32
Thomas Rendleman commentedI tried finding out what the error was. Just for your documentation I restarted all services including apache. I attempted to place error reporting inside chatroomread.php and it wouldn't show. The previous chatroom worked without error when created manually but the new one (July 8th) wouldn't work even when created manually. I guess it is just me that has this issue but if it turns up at least this might give a clue of what happened.
Comment #33
Anonymous (not verified) commentedThomas, you could try the new 6.x-2.10 release. good luck.