Closed (duplicate)
Project:
Chatroom
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2009 at 18:26 UTC
Updated:
1 Oct 2009 at 14:33 UTC
When I click on a chat room I get this error:
Fatal error: Call to undefined function chatroom_chat_get_latest_msgs() in {MYPATH}
I have searched that function in the code but there isn't.
Tnx.
Comments
Comment #1
teodorix commentedI have so trables!
I search all files in chatroom directory, but this function is not present.
Pls, give a work module.
Thx
Comment #2
eidolon nightSame issue. I can create rooms and everything, but once I enter a chat I get this error.
Comment #3
sebzur commentedThe same issue at my side..
Comment #4
cstachris commentedSame.
Blank screen when entering a chat.
Comment #5
cstachris commentedThis is a temporary fix and I'm just testing it now, but download the drupal 5 module.
In the chatroom.module file, grab
1. chatroom_chat_old_msg_limit function
2. chatroom_chat_get_latest_msgs function
and put them into the file of even name, chatroom.module.
Disable automatic archiving of chats and it works, otherwise you get some error message, but the chat still works.
Here are the functions in case you are too lazy to download the chat module for drupal 5.
and
Comment #6
cstachris commentedand then when you go into administer content types, chatroom, you get this warning - but it's still working.
Comment #7
sebzur commentedI've just found, that disabling messages archive enables chat to work... But, when I clik on 'Delete Chat' button, the error occurs:
Fatal error: Call to undefined function chatroom_chat_get_from_id() in /home/drupal/www/sites/all/modules/chatroom/chatroom.forms.inc on line 452
Comment #8
Gabrieles commentedTo fix the issue in #6 you just need to edit chatroom.module and remove the "," at the end of line 148.
Comment #9
Gabrieles commentedI have been able to enable message archiving, and I do not have many more errors (i still need to test and see if it is actually working, though ^____-)
You need to create a new table:
then the functions to be copy&pasted in your chatroom.module are
Also, you need to modify line 639
Comment #10
Gabrieles commentedIt seems that everything is working, now, at least with D6.10 and the 6.x-1.0-beta2 using the above patch (look at the thread on how to remove the chatroom.js error message).
Enjoy your new chatroom! ^_______^
Comment #11
2much2learn commentedDid anyone find a solution to fix the message below that you get when you click on the "Delete this chat" button for the Chatroom module?
Fatal error: Call to undefined function chatroom_chat_get_from_id() in /home/drupal/www/sites/all/modules/chatroom/chatroom.forms.inc on line 452
Comment #12
eidolon nightThe module hasn't received updates for some time now, so I don't feel bad saying that I've switched to the phpfreechat module and am quite happy. The performance overhead is a lot less and if actually works.
Comment #13
2much2learn commentedI was having problems with the phpfreechat module that is why I was checking into the chatroom one. I was able to get things worked out late yesterday with the phpfreechat module after doing some research online. phpfreechat seems to have more of the options I was looking for in a chat so I think I will stick with that for now. Thank you for your quick response! :)
Comment #14
Paul Natsuo Kishimoto commentedA few things:
chatroom_chat_get_latest_msgs, notchatroom_chat_get_from_id. There is a separate bug report for that: #328811: Fatal error: Call to undefined function chatroom_chat_get_from_id() .The calls to
chatroom_chat_get_latest_msgsneed to be updated with calls tochatroom_load_messages(chatroom.module, l.819), which is newer code that accomplishes the same thing.Comment #15
Paul Natsuo Kishimoto commentedWhoops...looks like this is actually a duplicate of #327708: Archive feature is broken.
Comment #16
liza commentedcan someone please indicate how to properly patch this ----as Kishimoto said, copy and paste is not the proper answer.
Comment #17
Ole Martin commentedPlease get this module to work or just remove it. No need to have useless modules where users need to be php-specialists. This is the second time I try it to work!
I use phpFreeChat instead (http://drupal.org/project/modules?text=phpfreechat)
Doku;
Old and useless: http://groups.drupal.org/node/2613
Where to began ? http://drupal.org/project/issues/chatroom
Try out WHAT?? http://chatroom.darren.oh.name/5.x-1.x-dev/
Some help here ?? http://groups.drupal.org/drupal-chat
Comment #18
Paul Natsuo Kishimoto commentedNo. Even if you're not a PHP specialist, you can read the common GPL reference text, which includes:
You are expecting "fitness for a particular purpose" when it is explicitly not promised. Use something else if you like, but don't be rude to the chatroom devs (I am not one).
Because this is a duplicate of #327708: Archive feature is broken, which has a tentative fix available, there is no point changing the status of or commenting on this issue.
Comment #19
Ole Martin commentedYou should agree that when you find such an error and a solution that is in everyone's interest that the module is updated. Or is it better that new users do not get it to work and to look in frustration for a solution that is already found and could have been arranged. And not all have English as their primary language, either.
This module could be a good module Maintainer had updated it and fixed all the useless links.
And now that you have shown me a link to the solution for me, I will try to fix it. And I hope that everyone else who reads this thread will find this solution.
To the solution (if I understand you right) http://drupal.org/node/327708