Hello, this module seems to be a perfect widget for any drupal site, but I've been having trouble with it from the very beginning and really need help now.

First I got the stable release, but it did the "Loading forever" error, which, by reading the other issues I find out is caused because of an older jQuery Update version, so I updated it.

Ever since I got the recommended jQuery Update version, the chat tab became transparent, and it kept on "loading forever".

I tried getting the alpha version of the chat, it does look different, but it's still stuck in loading mode (only except of saying "Loading" it just loops the circle animation).

Please help! I have the correct jQuery Update and I tried both the alpha and the working versions of the chat. It's still stuck in loading mode... I tried disabling "Tribune" - another module I used that does javascript auto-refreshing, it didn't change anything... Help.

CommentFileSizeAuthor
#8 ccch.JPG2.73 KBTSNetwork

Comments

TSNetwork’s picture

Status: Active » Closed (fixed)

Problem solved, sorry for bothering. Great module!

TSNetwork’s picture

Title: Many issues one after another... » Many issues one after another... Still.
Version: 6.x-2.0-beta2 » 6.x-1.2
Status: Closed (fixed) » Active

As I said, I'm now using version 6.x-1.2, because it's the only one with which I don't get the "always loading" problem that often. I wish I could use the newest version, I bet it's the best so far, but it does that error. Here are the final issues I couldn't solve whatever I tried:

- People who use Internet Explorer complain the chat doesn't show up correctly until they reload a bunch of times.

- Emoticons don't show up, and I can't find info about setting them up, or at least removing them, anywhere.

- Sound notification doesn't seem to be working either, eventhough I saw in the archive there's a "wav" directory and a "beep" sound in it, so it probably should...

Please help.

EDIT: Can you tell me what versions exactly are you using in the DrupalChat demo site (versions of DrupalChat, of jQuery Update, and of Drupal).
Yesterday I even got reports for the "always loading" problem from people who use Firefox... apparently it still doesn't work for most people...

EDIT AGAIN: Could you just help me fix the "loading forever" problem with the newest DrupalChat, I'm sure none of there problems would bother us again since the new one isn't in the block structure (for all I saw in another topic) and there's alot of fixes and updates.

darklrd’s picture

Hello SektorZ,

Have you checked the DrupalChat demo website? It is working on 6.x-2.0-beta2.

TSNetwork’s picture

Yes, as I said, I checked the demo site, and I was wondering how come it works there but it won't work on my website, even the beta2 stays in "loading"... It never actually starts. I have no idea what else to try...

darklrd’s picture

Open your website in firefox and check out the Firebug console. What error do you get? Most likely you are using the wrong version of jquery_update. What version is it on your website?

TSNetwork’s picture

1297365341/0.2790809529759215/json-reload | 200 OK347ms | jquery.min.js?G (line 19)

Seems like that could be it. I should have checked the console earlier...
The jQuery_Update is "6.x-2.x-dev", in the 6.x-2 branch... what else should I try?

Edit: This error message was caused by the Tribune module I used, I disabled it and the error message is gone, but DrupalChat still stays in Loading mode.

darklrd’s picture

Try 6.x-2.0-alpha1 instead and see if it works

TSNetwork’s picture

StatusFileSize
new2.73 KB

It still doesn't work... Here's what we get:

TSNetwork’s picture

It appears the whole problem was caused by the missing YUI library... but now eventhough it starts it still always shows 0 online users... Advices please... What could be causing this now?

New screenshot, everything looks in order but it simply doesn't show the other users, always shows 0:
http://i54.tinypic.com/2v846xv.jpg

EDIT: I also got a message from my hosting provider that the last day (which I spent debugging DrupalChat) my website suddenly took 30 times the processing time of their servers it did before. This is getting worse by the second, please help me finally figure this out because I'm running out of options and I already sacrificed another chat system because I wanted to use DrupalChat instead...

darklrd’s picture

Does Firebug console still show any error? If not, then my best guess is that your hosting provider is using default configuration for Apache and hasn't optimized it. You can do one thing install XAMPP on your local computer and install DrupalChat on a Drupal test site and then see if it works. What kind of user base do you have?

TSNetwork’s picture

No more errors from Firebug. The server is running on Linux, the Apache configuration has been optimized... Not sure what you mean by "user base", I'm the owner of the domain and hosting...

What else could be causing it not to show any of the online users...

darklrd’s picture

Have you given the appropriate permission (access drupalchat) to the authenticated users?

TSNetwork’s picture

Yes, they all see the chat, but they all get 0 users online...

darklrd’s picture

Are you using UR module?

TSNetwork’s picture

Nope... It's not required, right?

darklrd’s picture

No it is not required. I am stumped here since Firebug console doesn't show any error. Try re-installing the module once (make sure you uninstall it first).

TSNetwork’s picture

Wow, after reinstalling it, after it said it installed it's tables again, everything worked just fine!
I suppose that was logical, I had so many trouble with the previous version, tried so many new stuff...Thanks alot for the help!

PS: Last question, the chats aren't kept while moving from page to page eventhough I'm using the newest version of DrupalChat, is it because it's set to Long Polling (I doubt, but also) and what's the difference?
Thanks again!

darklrd’s picture

Version: 6.x-1.2 » 6.x-2.0-beta2

Thats good news!

Chat history is now saved b/w page loads (see the demo site). Are you using 6.x-2.0-beta2?

EDIT: It doesn't depend on which polling method you use.

TSNetwork’s picture

Using 6.x-2.0-beta2, yes. Another weird thing :p

I asked about the polling methods because I'm afraid I might get that message from the hosting providers again...

darklrd’s picture

Please check demo site once and confirm if it's working there. I just want to cross-check that you are referring to the same feature as I am.

TSNetwork’s picture

Yes, it's working for me on the demo site. The chats are saved between pages.
I'm with the same version on my site but discussions get lost when you switch pages. Maybe it's the jquery_update? Although it's also the appropriate version...

darklrd’s picture

No the chat persistence functionality is not dependent on jquery_update module. Which browser are you using and what version is it?

darklrd’s picture

Yes, you may get notice from your hosting provider if too many users use your chat simultaneously. Thats why I asked your userbase (how many visitors do you get on your site concurrently). I am developing a third back-end which will be able to support larger a userbase, but till then you can try out long-polling and see if it everything works out fine.

TSNetwork’s picture

Not much users, there's been about 6 or 7 people constantly online today in the chat.
Other than that it gets about 500 hits daily, but most of them are guests, who don't have permissions to use the chat. Is there any advice you could give me on that?

The browser is Firefox, I tried with IE too, chat still gets lost.

EDIT: And another question, what is "...drupalchat/poll" for? My guess is it has to do something with Long Polling... seems like the tracker shows the users "going" to this page about 3 times in a minute.

EDIT 2: Also reporting another issue, I noticed you made the usernames link to the users, but this leads to wrong/broken links for drupal websites that work with no clean urls, so instead of, for example:
website.net/user/?q=325
DrupalChat redirects to this link:
website.net/user/325
Which in a website with no clean urls leads to a broken link. Like in mine. Just reporting.

Darkestine’s picture

I am having the same problem. I am using DrupalChat 6.x-2.0 beta2, and even after uninstalling+reinstalling, it says chat(0) and the loading image keeps circling around while there are more than 2 registered users online. I have set the permission of accessing DrupalChat Module to all authenticated users. Please help.

darklrd’s picture

@ Darkestine - Have you installed YUI library?

TSNetwork’s picture

Install YUI library and uninstall and reinstall DrupalChat, that's what worked for me.

But please don't ignore my previous post, I had some questions.

darklrd’s picture

@SektorZ - drupalchat/poll is used to get the latest chat update (new chat messages, change in online user list). Yes, I will fix that clean URL issue. I am still unable to determine why chat persistence feature isn't working on your website :(

darklrd’s picture

@SektorZ - Which version of YUI library are you using?

TSNetwork’s picture

I took the newest current version in the link you provided, not the basic file but the whole pack.

About the drupalchat/poll - you said "used to", does that mean I have an older version eventhough it says it's the latest (6.x-2.0-beta2)? Cause that might be the reason why the chats aren't persistent between pages too, if something went wrong...

Darkestine’s picture

Thanks for your fast reply. I tried searching google for the YUI Library, but that didn't help out. Could you please tell me how I can install the YUI Library for DrupalChat? Thanks!

darklrd’s picture

The link to download YUI library is given on DrupalChat setting page (drupalchat/admin/settings/drupalchat). Copy and download the file in sites/all/libraries. You can get it from here - http://developer.yahoo.com/yui/3/

Darkestine’s picture

I installed YUI library and it looks like its working perfectly, but when I tried to test it out by creating two accounts and logging in through different web browsers, there was a problem. I wrote "Hi!" on the chat box and hit enter. When I looked in the other browser, there was no message. I checked the notification box to the right and it said a small 'hi' once clicked. However, nothing on the main chat window. Thank you for your help so far, and I really hope you can help me out with this one.

TSNetwork’s picture

I also noticed some slowdowns and unsent messages in IE, I suppose it's a browser issue, not sure though.

darklrd’s picture

@ Darkestine - What is your polling method? Change it to Long Polling.

EDIT: Also, disable Drupalchat Notifications.

darklrd’s picture

@ SektorZ - Sorry, wrong grammar on my part. You have got the correct version. I am still not able to determine why chat persistence is not working on your website :(

TSNetwork’s picture

Check it out if you want http://portal2.sektorz.net/
You'll just have to create an account, but it might be useful for testing :D

darklrd’s picture

@ SektorZ - Check out the latest commit. Download the drupalchat-min.js from the CVS repository and see if it works now.

Thanks

TSNetwork’s picture

I hope you mean download the latest version and copy just that file over my current version. (because I'm unsure what CVS repository is)

This actually worked! Nice work, man. Check it yourself again if you want. For how long are the chats saved now?

darklrd’s picture

Thats cool :) I guess you have downloaded the latest dev, so its fine. Chats should persist across pageviews and browser restarts (if possible).

darklrd’s picture

Version: 6.x-2.0-beta2 » 6.x-2.0-beta4
Status: Active » Fixed

Download drupalchat 6.x-2.0-beta4 :)

TSNetwork’s picture

Thanks to darklrd the module works great on my website now.

For people who have trouble, here's FAQ on how I and we fixed things:

Q: The chat is just "Loading forever", nothing happens. How to fix?
A: Uninstall DrupalChat (don't just disable it), then get the NEWEST version and put it on your website along with a correct version of jQuery Update (I use 6.x-2.x-dev and it works well).

Q: Still having trouble / still "Loading forever" or IT ALWAYS SAYS THERE ARE 0 USERS what to do?
A: Make sure you visit the DrupalChat settings page and follow the YUI library download link in the description in it, it is very important. Once you download it, copy it to your website's "sites/all/libraries" directory. If there's no "libraries" directory in your "sites/all" - create it. Then in the DrupalChat settings page, under "YUI Library", put the same link - "sites/all/libraries" and click "Save Configuration".

Q: My website is not working with Clean Urls so clicking a user's name in DrupalChat leads to a missing link. What do I do?
A: darklrd has released a version that fixes this issue, it's 6.x-2.0-beta4

Q: Chats get lost when changing pages. How to keep it persistent?
A: Get the newest version of DrupalChat.

darklrd’s picture

Thanks a lot SektorZ for making such a comprehensive FAQ! It will help others. :)

Thanks again

TSNetwork’s picture

Title: Many issues one after another... Still. » Many issues one after another... FAQ & Help here!

Hope so :] changed the title a bit. And thanks for the upgrades you did to help me!

pyrello’s picture

I just want to say, I was having these same problems before. I happened to see there was a new version and installed it, which fixed all my issues. This module is awesome! I'm really impressed with the page persistence.

hakankahraman66’s picture

Version: 6.x-2.0-beta4 » 7.x-1.x-dev
Component: User interface » Code
Category: bug » support
Status: Fixed » Needs review

Hi,
Drupal world is new for me.
I created a D7 based site and needed a chat function.
I understood that the drupalchat is the best for D6 and D7.

When loading, http://ftp.drupal.org/files/projects/drupalchat-7.x-1.x-dev.tar.gz,
I encountered some problems. Some solved some not.
Problem 1 :
The installation of the DrupalChat module failed.
The installation of the DrupalChat Notifications module failed.

After checking Reports/Recent Log Messages it listed DrupalChat module as:
system .... drupalchat_notifications module enabled. admin
system .... drupalchat_notifications module installed. admin

What did I do (W1) : Searched the blogs. A few days passed.
Later, I read info about firebug.
I loaded firebug for Drupal to Firefox.

P2 : Problem is continuing and I don't know what to do.
W2.1: I decided to check what the firebug says.
I ran the firefox and write my site address.
Error : YUI is not defined
Source File : http://abcabc.com/drupal/sites/all/modules/drupalchat/js/drupalchat.js?l...
(abcabc.com is not real, I replaced with my site name)

W2.2 : I I checked D7 Reports, I saw the following error.
Fatal error: Call to undefined function db_fetch_object() in /abcabc.com/drupal/sites/all/modules/drupalchat/drupalchat.module on line 397

P3: What did I wrong when loading YUI?
W3.1: I clicked http://developer.yahoo.com/yui/3/ YUI Seed was checked.
First dowlnloaded and load via Filezilla to my sites sites/all/
it was a .js file only.
I also created "libraries" with write permission.
I decided somethings were worng. I went to YUI download site.
I checked Full Developer Kit.
It was almost 75MB. I unzipped it locally.
It is unzipped to yui_3.3.0
I got the yui folder from there and loaded its files sites/all/libraries with filezilla.
Now, I have all yui files under yui subdir.
I run D7's drupalchat structure and wrote sites/all/libraries into YUI Library field.
And run save, I got "Ok." I shortened what really return because I use Turkish language.

I re-run the firefox, wrote my sites address and got same error in firebug.
I created a subdir as yui_3.3.0 under sites/all/libraries and move yui folder there.
Now, folder for yui is sites/all/libraries/yui_3.3.0/yui

W3.2: 23/02/2011
I checked D7's Reports->Recent Log Messages.
I saw an error saying, "yui-min.js " is missing.
I found out that yui also needs yui-min.js
So, I downloaded and install it to sites/all/libraries/yui_3.3.0/yui

For next , I'll continue to write what I find to solve the problem.

I am confused to install YUI. Could anyone help me to explain to install it step by step. Thanks.

darklrd’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Fixed

DrupalChat won't work right now with D7. There are some issues with it which need to be fixed. There are already similar issues posted. You can post your doubts there. Changing this back to 6.x-2.x. and closing this.

beautifulmind’s picture

This is worked like a charm.
Thanks for your FAQs.

Regards.

Status: Fixed » Closed (fixed)

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

Maks’s picture

Version: 6.x-2.x-dev » 7.x-1.0-beta11

A lot of hits drupalchat/pol
what is it?