Closed (fixed)
Project:
Node JS Chat
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2013 at 12:24 UTC
Updated:
10 Apr 2015 at 22:57 UTC
Jump to comment: Most recent
Comments
Comment #1
slv_ commentedYou need to add the extension included with the module to the nodejs.config.js extensions property.
Copied from the readme.txt:
Apart from copying it to the nodejs server, of course don't forget to enable it on the extensions property, like:
extensions: ['nodejs_chat.module.js'],Let me know if that works.
By the way, the current dev version of the module conflicts with the current dev version of the nodejs module (the one updated 2 days ago), as I committed a big patch to it that changes the way http requests to the server are handled. I'll commit the changes to adapt this module during the weekend.
Comment #2
mkesper commentedNow I get:
Failed to load extension nodejs_chat.js [ReferenceError: jQuery is not defined].Comment #3
slv_ commentedI think you're adding the wrong file to the extensions:
it is
['nodejs_chat.module.js']
Not
['nodejs_chat.js']
The right file is in the "extensions" directory of the module. The common nodejs_chat.js file is just what users get on their browsers to handle the chat events, but nothing that you have to add to the node server.
Apart from adding the right one to the extensions array, of course make sure you put it on the nodejs server folder!
Comment #4
mkesper commentedOk, that was a stupid error. ;)
But alas, the next one is:
Fatal error: Call to undefined function nodejs_get_check_channel() in C:\xampp\htdocs\drupal\sites\all\modules\nodejs_chat\includes\Chat.inc on line 57Comment #5
slv_ commentedThat means you have the very last version of my module, but not the last version of nodejs module. We added that function recently to it, so make sure you update to the latest version. In fact, this required the DEV version of the nodejs module -> http://drupal.org/node/1160868
Comment #6
mkesper commentedNow I get blank pages for pages in which the module is enabled.
And a
Notice: Trying to get property of non-object in nodejs_requirements() (Zeile 78 von C:\xampp\htdocs\drupal\sites\all\modules\nodejs\nodejs.installComment #7
slv_ commentedThat seems to be because of a recent change introduced on how the requests to the server are handled by the module. Try the 7.2 release, I think that should have the function mentioned in the previous comments, but not this last change.
Otherwise, the nodejs module itself needs to fix that function asap. Anyways I'll check with the module maintainer to get it fixed. But, once again, 7.2 should be fine for the time being I think.
Comment #8
mkesper commentedSorry, where can I find the 7.2 release? I can only find 7.x-1.x-dev
Comment #9
slv_ commentedMy bad, typed it wrong, it's 7.2 -> http://drupal.org/node/1979410 (I was meaning of the nodejs module, not the nodejs_chat module).
Comment #10
mkesper commentedOk, thanks! :)
Comment #11
slv_ commentedI guess this worked fine for you, so marking the issue as fixed.
Comment #12
seanrPlease define "enable the "nodejs_chat.module.js" extension" - I have no idea how to enable it?
I'm getting [Error: Cannot find module '/.../sites/all/modules/contrib/nodejs/nodejs_chat.module.js'] - do I have to copy it to the nodejs module's folder? That seems like bad news if I ever upgrade nodejs in the future - there's no kind of library system?
In general, the documentation for both this and the nodejs module is rather vague. Hence, you're seeing a lot of repeated questions and general confusion. A working example setup and improved instructions would really go a long way here. As it stands, I can only glean enough info from this to get halfway to a working setup. :-(
Comment #14
slv_ commentedHi seanr. I think you're right. That particular is not too clear for people not familiar with the nodejs module.
Relevant docs about enabling extensions should be on that module, rather on others like the chat one, but I've improved the README file, so Step 4 is split down into more concise tasks.
Closing.