Using IE7 if it matters.
Installed the Chatroom module and when i load the page it is on it has the following error:

Line: 577
Char: 9
Error: 'chatroom.userColours[...].unUsed' is null or not an object
Code: 0

Behavior is as follows:
Loads the chat window (atleast a box, not sure if it is just the place holder though, I haven't seen a working chatroom module before).
Won't post any chat. Clicking the "Send" button does nothing.

Did I configure something incorrectly?

Comments

bryancall’s picture

Same problem here...been looking all over for a fix for this but found none...any help is appreciated.

darren oh’s picture

Status: Active » Closed (works as designed)

This is documented on the project page and INSTALL.txt. You must use a development release of Drupal or change line 1702 of includes/common.inc yourself:

change

      if (array_keys($var) === range(0, sizeof($var) - 1)) {

to

      if (empty ($var) || array_keys($var) === range(0, sizeof($var) - 1)) {
cwsiteadmin’s picture

Status: Closed (works as designed) » Closed (fixed)

Brilliant. Works perfectly now that I changed that line.

gurukripa’s picture

hi..
the chatroom worked for a while after changing the 1702 line in includes/common.inc
but now again no more chats visible..and cant enter anymore..
pls help

gurukripa’s picture

Version: 5.x-1.1 » 5.x-1.6
Status: Closed (fixed) » Postponed (maintainer needs more info)

this problem mentioned above is for the new version..1.6..pls help

gurukripa’s picture

pls help with this problem..chats work for a while..then dont..also they are not visible till someone types something..so it gives the false impression..that no chat is on
help

detectedstealth’s picture

Version: 5.x-1.6 » 5.x-1.7

Seems like I am having the same issue almost:

On my local computer I patched common.inc, and everything works fine. So I uploaded the modified common.inc to my hosting server and when I send a message there is nothing being sent. I made another change in common.inc to break the site just to make sure it is working, then removed my change, still with no luck.

So I know it has something to do with my host but what should I be looking for? Is there some setting that would be stopping the chat from sending messages? (There is no messages in the messages table)

darren oh’s picture

Unfortunately, a patch that breaks Chat Room was recently committed to Drupal 5. A fix is available. See issue 159854. Please set it to "ready to be committed" if it works.

zarin’s picture

I have same problem: messages in chat window appears only after I post a message.

gracearoha’s picture

Priority: Normal » Critical

Hi,

I am also having a problem with chat not working. It was working for a little while and now, when someone types something in, it does not show in the screen. I have patched both the common.inc file and the bootstrap.inc files according to the posts here. I have cleared all my caches and deleted the chatroom cache, but still no go.

Please help!

saml’s picture

Chat room does never send messages for me either.
Using Drupal 5.2 which have the patch in http://drupal.org/node/124359 applied, and the official release of Chatroom, of 2007-Jul-10.

Tried both on my laptop with Win XP/Apache 2.2.3/MySQL 5.0.24a/PHP 5.1.6/PEAR (basic package)

...and on a shared host, Debian/Apache 1.3.37/PHP Version 5.2.2/MySql 4.1.15

saml’s picture

It started working when I set the cookie domain in settings.php: ( $cookie_domain = 'the-name-of-my-domain'; ).

darren oh’s picture

The latest version of Drupal has a new bug that keeps Chat Room from working. I did my best to warn the Drupal maintainers against releasing version 5.2 until it was fixed, but they wouldn't listen.

gracearoha’s picture

I am still using Drupal 5.1 and having this problem.

keesje’s picture

darren oh’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
darren oh’s picture

Status: Closed (duplicate) » Closed (fixed)