Seite 1 von 1

phpopenchat-Fehler - HILFE!

Verfasst: 10.05.2005 14:58
von smart
Hi!
Ich wollte den phpopenchat einbauen, bekomme jetzt aber folgende Fehlermeldung, wenn ich die poc_loginform.php öffnen will:
Warning: main(../phpopenchatextension.inc): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 43

Warning: main(../phpopenchatextension.inc): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 43

Warning: main(): Failed opening '../phpopenchatextension.inc' for inclusion (include_path='./:/usr/share/pear/') in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 43

Warning: main(../phpopenchatcommon.): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 44

Warning: main(../phpopenchatcommon.): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 44

Warning: main(): Failed opening '../phpopenchatcommon.' for inclusion (include_path='./:/usr/share/pear/') in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 44

Warning: main(../phpopenchatlanguage/lang_/lang_main.): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 45

Warning: main(../phpopenchatlanguage/lang_/lang_main.): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 45

Warning: main(): Failed opening '../phpopenchatlanguage/lang_/lang_main.' for inclusion (include_path='./:/usr/share/pear/') in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 45

Fatal error: Call to undefined function: session_pagestart() in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/poc_loginform.php on line 50
Kann mir einer sagen, was das heißen soll? Der Pfad trägt sonst natürlich die Adresse meiner Domain - habe ich nur für euch geändert... ;-)

Verfasst: 10.05.2005 15:46
von smart
Noch ein Fehler: Wenn ich "ganz normal" in den Chat möchte, also mich über den direkten Pfad einloggen will (www.meinedomain.de/phpBB2/phpBB2/openchat/), erhalte ich folgenden Fehler:
Warning: get_template(/is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/phpope ... phpBB2.tpl): failed to open stream: No such file or directory in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/phpope ... mplate.inc on line 331

Warning: get_template(): Failed opening '/is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/phpope ... phpBB2.tpl' for inclusion (include_path='./:/usr/share/pear/') in /is/htdocs/12345/www.meinedomain.de/phpBB2/phpBB2/phpope ... mplate.inc on line 331

Verfasst: 10.05.2005 16:26
von smart
Um Zeile 331 sieht es so aus:

Code: Alles auswählen

  /**
  * Provides the template with path and outputs html
  *
  * @access public
  */
  function get_template( $template=null, $path_only = false )
  {

    if( ! $this->template = $this->_find_template($template) )
      die('No such template found, giving up.');

    if($path_only) return $this->template;

    global $TEMPLATE_OUT;
    ob_start();
    if( !file_exists($this->template) ) {
      /* in case user changed directory structure and
       * has created the session object already */
      $this->_build_pathes();
      $this->template = $this->_find_template();
    }

    include_once($this->template);
    $content = (TRIM_OUTPUT)? preg_replace('/([\r\n])[\s]+/', "\r\n", ob_get_contents()):ob_get_contents();
    ob_end_clean();
    $content = '<?xml version="1.0" encoding="'.$_SESSION['translator']->out('CHARACTER_ENCODING').'"?>'.NL.$content;
    header('Content-type: '.$this->content_type.'; charset='.$_SESSION['translator']->out('CHARACTER_ENCODING'));      
    print $content;
    flush();

    if( $this->cache_it )
    {
      if( !$this->_put_into_cache( $content ) )
        $_SESSION['logger']->debug('Could not cache template',__FILE__,__LINE__);

      $this->cache_it = false;
      $this->cache_max_age = 0;
    }
    exit;
  }

  /**
  * Searches for a template in right language, if such template not found 
  * the template in default language will be returned
  *
  * @access public
  */
  function get_language_template( $template = null )
  {
    if( ! $this->template = $this->_find_template($template) )
      die('No such template found, giving up.');

    global $TEMPLATE_OUT;
    ob_start();
    if( file_exists($this->template.'.'.$_SESSION['chat']->get_language()) )
      include_once($this->template.'.'.$_SESSION['chat']->get_language());
    else 
      include_once($this->template.'.'.$_SESSION['chat']->get_default_language());

    $content = (TRIM_OUTPUT)? preg_replace('/([\r\n])[\s]+/', "\r\n", ob_get_contents()):ob_get_contents();
    ob_end_clean();
    $content = '<?xml version="1.0" encoding="'.$_SESSION['translator']->out('CHARACTER_ENCODING').'"?>'.NL.$content;
    
    header('Content-type: '.$this->content_type.'; charset='.$_SESSION['translator']->out('CHARACTER_ENCODING'));
    print $content;
    exit;
  }
  
  /**
  * Provides the current choosen theme
  *
  * @return string
  */
  function get_theme()
  {
    return $this->theme;
  }

  /**
  * Provides content from cache
  * @param string maximum age for the cached content
  * @return string
  */
  function get_cached_content( $max_age )
  {
    if( !is_object($_SESSION['chat']) || !CACHE_ENGINE ) return false;
    
    $cacheId = $this->_calculate_cacheId();
    $_SESSION['chat']->connect();
     $cached_content = $_SESSION['chat']->get_template_from_cache($cacheId);
    $_SESSION['chat']->disconnect();
    
    if($cached_content == '')
    {
      $this->cache_it = true;
      $this->cache_max_age = intval($max_age);
      return false;
    }

    print $cached_content;
    exit;
  }

  function get_web_root()
  {
    return $this->web_root;
  }
  
  /**
  * Provides the path to the current theme
  *
  * @return string
  */
  function get_tmpl_web_path()
  {
    //path clean up
  //$this->tmpl_web_path = preg_replace('#//#','',$this->tmpl_web_path);
    return $this->tmpl_web_path;
  }
  function get_theme_path() {return $this->get_tmpl_web_path();}

  /**
  * Provides the path to the current theme
  *
  * @return string
  */
  function get_path( $path )
  {
    if($path=='THEME_PATH')
      return $this->get_theme_path();
      
  }
  
  /**
  * Provides the web path to POC
  *
  * @return string
  */
  function get_poc_web_root()
  {
    return 'http://'.$_SERVER['SERVER_NAME'].$this->poc_web_root;
  }
  
  /**
  * Provides the path to the current theme
  *
  * @return string
  */
  function get_tmpl_sys_path()
  {
    return $this->tmpl_sys_path;
  }
Komme noch immer nicht weiter...

Verfasst: 10.05.2005 21:39
von Zyancali
Noch nie den Editierenbutton rechts oben beim post geshen ?!
Benutz den gefälligst!

zur Lösung deines Problems: Die meldungen sagen das die/der angeforderte Datei/Order nicht existent ist!

Aber in der datei sehe ich keinen fehler!

Verfasst: 11.05.2005 01:40
von smart
Hm, es gibt sie aber...

Danke trotzdem, mache mich mal weiter an die Arbeit oder auf die Suche nach einem anderen Chatsystem (nachdem ich in alten Threads schlechte Meinungen gelesen habe).

Natürlich kenne ich die Editier-Funktion, aber ich wollte den Beitrag nicht zu lang machen!