Chat and Macs

Chat and Macs

by Karen Tunny -
Number of replies: 21
Hello - I would really appreciate any advice about using the Moodle Chat module on Macs.
We really participated in our first online reference group meeting. There were seven participants. Three of us, including the meeting facilitator, were using Macs operating on System 10. We did not receive several postings and when we posted the postings appeared twice. We have one PC in the office and so one staff member decided to use it - it seemed to not have these problems.
We hope to continue the meetings online and to use the Macs. Can anyone assist?
Thanks very much,
Karen Tunny
Average of ratings: -
In reply to Karen Tunny

Re: Chat and Macs

by Mark Stevens -
Were you all using Safari?  There are a few issues with Safari, and I'm guessing this is one of them.  Try Firefox, Netscape, or something else free smile
In reply to Karen Tunny

Re: Chat and Macs

by Don Hinkelman -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi Karen,
Very puzzling situation.  I have never heard of Macs having trouble with chat--double postings/no postings.  Maybe it has something to do with the browser software.  Could you tell us what browsers and versions you used on the PC and the Macs?
In reply to Don Hinkelman

Re: Chat and Macs

by Karen Tunny -
Hi Don,
It's Internet Explorer 5.2. Mac is an IMac, System 10. Thanks, Karen
In reply to Karen Tunny

Re: Chat and Macs

by Mark Stevens -
As Don said, we've never heard of any issues with Macs and chat... and maybe that's because we don't use Explorer? ;)  Try the chat with Safari, Firefox, or Netscape, and if the problems persist, we can try something else smile

(Could you tell us a little about the machine that is hosting the Moodle? or your network? or your firewall settings?)
In reply to Don Hinkelman

Re: Chat and Macs

by gordon reavley -
Hi
I've joined this discussion fairly late but I've been running chat sessions on learning to Look at the Visual Arts on an Imac running OSX with Explorer and experienced exactly the same problems; i.e. double postings and not seeing the whole discussion. I'm told that the problem lies with Microsoft not updating Explorer for Macs for several years and that Firefox is a better alternative. Any feedback on this or Safari welcomed

Thanks

Gordon Reavley
In reply to Karen Tunny

Re: Chat and Macs

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
What type of chat are you using - normal or chatd?

I would like to fix it, but I need some testers, because I have no Mac sad
In reply to Petr Skoda

Re: Chat and Macs

by John Papaioannou -
That's exactly the thing, Petr... chatd sometimes gets bug reports but it's really difficult to do anything with them because there are people using different versions of Mac OS, different browsers... and there's no Mac in sight around here. sad
In reply to John Papaioannou

Re: Chat and Macs

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
I will prepare a patched chatd today for 1.4.x suitable for production sites. I need to study the sockets and http protocol a bit more, but I hope it will work wink

I've spent a night trying to make it work on Windows server, succeeded and I think that the problem with Mac clients is the same.

Try to modify line 970 in chatd (version 1.13.2.10):

    $data = socket_read($handle, 512 2048);

I do not know yet why exactly, but it seems to solve the problem...

skodak
In reply to Petr Skoda

Re: Chat and Macs

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
I am 99% sure the reason of all these problems is too small maximum read length used in socket_read() call.

Why?
  1. If you insert echo "length: ".strlen($data)."\n"; after socket_read() you will see that the length of $data is always more than 650 bytes.
  2. Opera error message says "Connection closed by remote server" - the best description!! IE and FF say "Page empy" or ignore it and Safari tries to resend the request (resulting in double posts).

If nobody stops me I am going to commit some higher value (2048?) to STABLE CVS tomorrow big grin

PS: we could also add some test to see if data has maximum length and throw error if yes

$data = socket_read($handle, 2048); // should be more than 1024 to prevent empty pages and repeated messages!!
               
if(empty($data)) {
    continue;
}

if (
strlen($data) == 2048) {
    $DAEMON->trace('UFO with '.$handle.': Data too long; connection closed', E_USER_WARNING);
    $DAEMON->dismiss_ufo($handle, true, '
Data too long; connection closed');
    continue;
}
In reply to Petr Skoda

Re: Chat and Macs

by John Papaioannou -
Yes, I 'm all for that!

Strange though... I remember setting that so something higher than 512 exactly because it wasn't reading the whole response. Anyway... mixed

Jon
In reply to Petr Skoda

Re: Chat and Macs

by Karen Tunny -
Hello Petr,
We are using normal chat. By chatd do you mean chat daemon? We don't seem to have any choices about the chat we use - so I guess it's just normal. I was going to download Netscape following suggestions last week however if the modifications you have done mean that's not necessary then we will just continue with Explorer. Should we test it again?
Thanks,
Karen
In reply to Karen Tunny

Re: Chat and Macs

by Tony Hursh -
Karen, if you're using OS X you should definitely try Mozilla Firefox rather than continuing to use Internet Explorer.

IE for the Mac hasn't been updated for 4 years, and doesn't support many of the nice features in Moodle (in particular, the WYSIWYG editor). There's just no comparison. smile

In reply to Tony Hursh

Re: Chat and Macs

by Karen Tunny -
Hi Tony,
Thanks for your reply - that clarifies it some more. Is Mozilla Firefox a free browser that I can download that will work fine on Mac? Appreciate your time,
Karen
In reply to Karen Tunny

Re: Chat and Macs

by Tony Hursh -
Yep, it's free, and it works great as long as you have OS X.

Sadly, there is no version for OS 9 or earlier (nor is there likely to be).

In reply to Tony Hursh

Re: Chat and Macs

by Karen Tunny -
Hi Tony - I see you provided a link and I just did a Google search which answered my questions. Do you think Firefox is preferable to Navigator?
Thanks,
Karen
In reply to Karen Tunny

Re: Chat and Macs

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Could somebody arange for me remote access to some Mac machine with chat problems. I am trying to improve Chat in 1.5, but I can not test it properly sad I saw Mac only once in my life, it was some 11 years ago...

I think it would take only several hours to diagnose and fix the problem wink
(VNC could be the easiest solution.)

In the meantime could somebody send me a backup of course (by email) where those problems with macs appeared? I want to study message timestaps, maybe it would help.


skodak
In reply to Petr Skoda

Re: Chat and Macs

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Looking at the javascript for submitting messages to chat, I might have spotted another problem: data is submitted and then the input field is cleared.

The problem is that the user can press the enter twice and thus make double post. If we clear the form field first, than another pressing sends nothing smile

What do you think Jon?