Don P - 2003-09-30

Hi,
I just installed chat, and am having a problem in class.Chat.inc. I don't read object PHP well, but it looks like it has to do with some flag images. It looks like they're all there.

It looks like my server has PHP 4.4. One twist, it's a virtual server, so all files need to be under my user account.

The Error:
Fatal error: Call to a member function on a non-object in /usr/local/etc/httpd/vhosts/rockharborcf.org/htdocs/chat/include/class.Chat.inc on line 155

That Function:
  {
    $flag_dir  = '/images/flags';
    $flag_path = $flag_dir.'/'.strtolower($lang).'.gif';
    if( file_exists($_SESSION['template']->get_tmpl_sys_path().$flag_path) )
      return '<img src="'.$_SESSION['template']->get_tmpl_web_path().$flag_path.'" align="middle" alt="'.$_SESSION['translator']->out('CHOOSE_LANGUAGE').'" width="24" hight="16" border="0" />';
   
    return $lang;
  }

Temp directoris are in, and I haven't seen anything else like this.

Thanks for any help. I have a customer waiting for this and am under the gun.

-Don-