Closed (fixed)
Project:
Chatroom
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Reporter:
Created:
29 Oct 2008 at 16:57 UTC
Updated:
2 Apr 2010 at 08:20 UTC
Jump to comment: Most recent
I downloaded the beta and created my chatroom however when I try and access it I get the following error
Fatal error: Call to undefined function chatroom_chat_get_latest_msgs() in /home3/sites/all/modules/chatroom/chatroom.module on line 636
Any suggestions?
Comments
Comment #1
mitchell commentedI think the archiving feature is causing that error. Try turning it off.
Patches welcomed.
Comment #2
mitchell commentedupdating version
Comment #3
Grinch2171 commentedTurning off the archive worked but before I turned it off I upgraded to the beta2 version and still got that error.
Comment #4
Babalu commentedsubscribing
Comment #5
andy inman commentedYes, still happens in beta2, turning off "auto-archive" does seem to make the error go away.
Comment #6
vallab444 commentedit worked after I turned off archiving. thanks. unobtrusive UI, I liked it.
Comment #7
mitchell commentedComment #8
rsvelko commentedguys - there isn't any function
chatroom_chat_get_latest_msgs
anywhere in the files of this module - no wonder php gives that error.... The archiving probably works but in its begining it calls that undef func ...
the string
function chatroom_chat_get_latest_msgs
can be found here in the module's files: (recursive find done with notepad++)
[chatroom\chatroom.module]
Line 636 : $msgs = chatroom_chat_get_latest_msgs($chat_id, $user->uid);
[chatroom\updates.inc]
Line 35 : $js->msgs = chatroom_chat_get_latest_msgs($chat_id, $user->uid, $last_msg_id, $timezone, $smileys);
Line 91 : $js->msgs = chatroom_chat_get_latest_msgs($chat_id, $user->uid, $last_msg_id, $timezone, $smileys);
EDIT: @maintainer: please comment that 636th line or do sth fast - switched the issue to critical
Comment #9
britne commentedsubscribing
Comment #10
Paul Natsuo Kishimoto commentedI just commented on duplicate #362728: Fatal error: Call to undefined function chatroom_chat_get_latest_msgs():
@rsvelko: unfortunately it is not true that "archiving probably works"; beyond the calls to that removed function, there are also several table references to
{chatroom_msg_archive}, which has been removed in favour of an 'archived' column in{chatroom_msg}. Those queries also need to be updated.Comment #11
vallab444 commentedComment #12
Anonymous (not verified) commentedouch. another case of performance killing changes to the chatroom code. i'll work on using the archived flags to get something out, then restore the archive table later.
Comment #13
Anonymous (not verified) commentedi've committed code to the DRUPAL-6--1 branch to fix this.
please update and see if it work for you.
Comment #14
Anonymous (not verified) commented