Hi, great module!

I've had this module working once, and then it stopped, with chats only updating when text is entered. I have the correct module path and chatroomread.php in webroot. Im not getting any errors in httpd logs.

I've also upgraded to the latest 2.11 release and still the same problem.

Any suggestion for hints on the problem?

Comments

Bimble’s picture

I do get the following errors in the browser console:

When typing, each character pressed generates:

Warning: The 'charCode' property of a keyup event should not be used. The value is meaningless.
(against the chat node)

When submitting the text:

Warning: Unknown pseudo-class or pseudo-element 'last'.
(against the chat node)

Anonymous’s picture

which browser? do you have any other modules enabled that load a lot of javascript?

Bimble’s picture

The browser is firefox,

The following JS is enabled:

src="/modules/jquery_update/replace/jquery.js?U">

src="/misc/drupal.js?U">

src="/modules/fivestar/js/fivestar.js?U">

src="/modules/panels/js/panels.js?U">

src="/sites/all/modules/chatroom/chatroom.js?U">

src="/misc/textarea.js?U">

src="/sites/all/modules/chatroom/chatroom.user.add.widget.js?U">

src="/misc/autocomplete.js?U">

src="/misc/collapse.js?U">

src="/sites/all/plugins/imageflow/imageflow.packed.js?U">

src="/modules/views_slideshow_imageflow/views_slideshow_imageflow.js?U">

with Panels, imageflow, and views:slidshow running on the page...

Anonymous’s picture

ok, thanks for the info.

is it possible to disable one/some of those and see if that helps? it would be a big help to me if in narrowing down where the incompatible js comes from.

Bimble’s picture

I can get it down to this:

="text/javascript" src="/misc/drupal.js?6">

="text/javascript" src="/modules/panels/js/panels.js?6">

="text/javascript" src="/sites/all/modules/chatroom/chatroom.js?6">

="text/javascript" src="/misc/textarea.js?6">

="text/javascript" src="/sites/all/modules/chatroom/chatroom.user.add.widget.js?6">

="text/javascript" src="/misc/autocomplete.js?6">

="text/javascript" src="/misc/collapse.js?6">

="text/javascript">

And still same problem.

Im guessing its not panels, no panels are active on the page and you would have everyone screaming if there were a pnel clash...

Still the same console errors.

Bimble’s picture

Status: Closed (fixed) » Active

Ok, got it working again. Trying to repliacate the fault. I did two things, not sure which one fixed:

- I made the edit to chatroom.install mentioned here :http://drupal.org/node/851070 though I had no error logs, i thought a silent error might exist if the install was wrong (straw clutching maybe)

- I also enabled all the permissions. Since I had the module working previously I'd tried to tighten the access permissions (so certain roles couln't admin the chatooms). There might be an error there and Im going to mess around a bit and post conclusions...

Anonymous’s picture

thanks for looking into it, i'll leave this open until you report back.

Bimble’s picture

Ok, set permissions back to restricted, and still working. I've enabled some of the other modules with javascript and still working

Can't offer any explanations..

Bimble’s picture

Status: Active » Closed (fixed)

Whatever happened to fix it, the browser console errors also disappeared...

Perhaps the chatroom.install edit fixed it?

Anonymous’s picture

Status: Active » Closed (fixed)

ok, i'll close this issue. please reopen if you manage to reproduce the bug.

sometimes drupal's caching can cause this sort of issue...

Bimble’s picture

I got to the bottom of why it wasnt working, it was because the default values for the chatroom created through node_save appear to be non-functional. I openened a new ticket here because they should probably be changed in a next code drop even though the solution is pretty simple.

posted new ticket here http://drupal.org/node/852760