From: Charles C. <ch...@ru...> - 2004-11-17 16:34:37
|
Reini Urban wrote: > Charles Corrigan schrieb: > > I turned on groups in config.ini, and selected the multiple > > groups per user SQL statements. > > > > When using IE 6, I always get the following message when > > trying to access any page in the wiki. When using Mozilla > > 1.7.3, I occasionally get the same message. > > > > Fatal error: Call to undefined function: prepare() in > > /home/runega2/public_html/whitewall/lib/WikiGroup.php on > > line 626 I thought about it more and I now think that I mischaracterized the symptoms. With Mozilla, before I enabled the groups settings, I had logged into the wiki. With IE, I did not log in prior to enabling groups. At least one of the times when I had the problem in Mozilla was when I tried to log out. Looking at the code in WikiGroup and in WikiUserNew, I think that the user level should be tested before accessing the prepare function. Something like if $user->_level >= WIKIAUTH_USER { $this->_is_member = $user->prepare($DBAuthParams['is_member'], array('userid','groupname')); $this->_group_members = $user->prepare($DBAuthParams['group_members'],'groupname'); $this->_user_groups = $user->prepare($DBAuthParams['user_groups'],'userid'); $this->dbh = $user->_auth_dbi; } else { $this->_is_member = false; // I don't yet understand enough to do the rest of the else path } I hope that this helps... > Thanks for your report. I see the problem. > I'll check why this happens. It shouldn't. Regards, Charles |