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

Anonymous’s picture

Thomas, 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.

Thomas Rendleman’s picture

yes.
Do you want a video?

Thomas Rendleman’s picture

I am making right now. Thank you for your quick help.

Anonymous’s picture

Thomas, video is good, pastebin of code that is run to create the chat nodes would be very useful as well.

Thomas Rendleman’s picture

Justin Randell? Are you in the US?
Video is rendering....

Thomas Rendleman’s picture

I 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.

Thomas Rendleman’s picture

I 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.

Thomas Rendleman’s picture

I 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.

Thomas Rendleman’s picture

gygaxi.com/sites/default/files/video.mp4

Anonymous’s picture

ok, 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?

Thomas Rendleman’s picture

Q - 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.

Anonymous’s picture

Thomas 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.

Anonymous’s picture

jQuery.extend(Drupal.settings, { "basePath": "/", "chatroom": { "pollInterval": "1000", "idleInterval": 60000, "chatId": 4, "popoutParams": 
...

versus

jQuery.extend(Drupal.settings, { "basePath": "/", "chatroom": { "pollInterval": "1", "idleInterval": 60, "chatId": 5, "popoutParams": 
...
Anonymous’s picture

Version: 6.x-2.9 » 6.x-2.x-dev

committed 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.

Anonymous’s picture

Status: Active » Fixed
Thomas Rendleman’s picture

Version: 6.x-2.x-dev » 6.x-2.9
Status: Fixed » Active

Thank you for your help. I will let you know tonight.

Anonymous’s picture

Status: Active » Fixed

please set back to active if it doesn't work.

Thomas Rendleman’s picture

Status: Fixed » Active

Bad news. It isn't working with the new dev.

Thomas Rendleman’s picture

Doing the same thing unfortunately. I do appreciate the time you put in. I wish I knew more about the system so I could help...

Anonymous’s picture

can 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?

Thomas Rendleman’s picture

Worse news. It doesn't work even when manually I create chat. Even when it is created manually the behavior is the same.

Thomas Rendleman’s picture

All are new chats, manually and rules created all have the delayed behavior

Anonymous’s picture

can you post the js i asked for?

what happens if you edit then save the chats?

Thomas Rendleman’s picture

I am not sure how to do #13.
I just deleted the chatroom I had and replaced with the dev.

Anonymous’s picture

ok, 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.

Thomas Rendleman’s picture

Sorry it took so long. Doing right now. The internet is off and on...
BRB

Thomas Rendleman’s picture

I 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


Thomas Rendleman’s picture

It didn't show a copy of it. Try this http://gygaxi.com/content/staff-chat-0?500908974=1

Anonymous’s picture

tried your link, and i get a "500 Internal Server Error" from chatroomread.php.

Thomas Rendleman’s picture

Thanks 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.

Anonymous’s picture

Status: Active » Fixed

no worries, good luck. please reopen if you can find out what the issue was.

Thomas Rendleman’s picture

I 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.

Anonymous’s picture

Thomas, you could try the new 6.x-2.10 release. good luck.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.