Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Getting Fatal Error and i need best chat module which works in localhost.I am using chatroom module which is blocking my site with following error.
Comment | File | Size | Author |
---|---|---|---|
#2 | chatroom-error_formatter_view-2004028-7456180.patch | 513 bytes | KOsipenko |
Comments
Comment #1
sampath1 CreditAttribution: sampath1 commentedFatal error: Call to a member function get() on a non-object in C:\wamp\www\DRUPAL\sites\all\modules\chatroom\chatroom.module on line 295
Comment #2
KOsipenko CreditAttribution: KOsipenko commentedIf field is empty for the chat room, that i get error.
I wrote patch for fixing current problem.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedthanks.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis is an issue.
PHP Fatal error: Call to a member function get() on a non-object in modules/all/chatroom/chatroom.module on line 305
the line in question is:
nodejs_send_content_channel_token('chatroom_' . $chatroom->get('cid'), TRUE);
And yes my nodejs server is working properly.
It seems like $chatroom does not have the get function associated with it.
I created a content type
I added the chatroom field
I created the chatroom but I did not restrict to any users.
When I went to the chatroom node for user 1. it showed up.
When I logged in as authenticated user I saw nothing.
I set the permission see all chatrooms for authenticated users.
The authenticated user could see the chat but there was no box to enter what she wanted to say or a submit button.
I then went back to the node and edited it so that authenticated users could view and chat.
When I hit submit for his change, I get WSOD and the above error.
The patch above no longer applies.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedchanged title to reflect error and updated status
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedLooks like the the variable $chatroom is treated like an object throughout the chatroom code but it is no longer an object.
Comment #7
glekli CreditAttribution: glekli commentedLooks like this has already been fixed somewhere along the way. The field item is being checked for empty value.