Hallo,
Ik heb het goed staan maar hij link niet naar die map hoe?
Bestand class.xdbSmarty.php
  • <?php
    /**
    * OBST, a tool for the multilingual browsergame TribalWars.
    * Copyright (C) 2006-2007 Robert Nitsch
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
    **/

    // stellt die Smartyklasse bereit
    // URL: http://smarty.php.net

    require(OBST_SMARTYDIR.'/Smarty.class.php');

    class xdbSmarty extends Smarty {

    function xdbSmarty()
    {
    $this->template_dir = OBST_DIR_TEMPLATE.'/';
    $this->compile_dir = OBST_ROOT.'/cache/compiled';
    $this->cache_dir = OBST_ROOT.'/cache';

    $this->assign('obst_root', OBST_ROOT);
    }

    }

    ?>

En dit geeft die aan.
Warning: main(./../smarty/smarty.class.php) [function.main]: failed to open stream: No such file or directory in /home/www/tktribal.100webspace.net/include/class.xdbSmarty.php on line 24

Fatal error: main() [function.require]: Failed opening required './../smarty/smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/www/tktribal.100webspace.net/include/class.xdbSmarty.php on line 24
Je bestand staat niet op die plek.
Wat moet ik anders zetten dan?
Je moet je constante OBST_SMARTYDIR aanpassen naar wat het moet zijn. (Niet './../smarty/' dus.)
Ja hoe dan ik heb alles al geprobeert maar lukt niet.
<?php require(OBST_SMARTYDIR.'/Smarty.class.php'); ?>

Wordt (kies er eentje uit die werkt:)
<?php
require(OBST_SMARTYDIR.'./Smarty.class.php');
require(OBST_SMARTYDIR.'../Smarty.class.php');
require(OBST_SMARTYDIR.'../../Smarty.class.php');
require(OBST_SMARTYDIR.'../../../Smarty.class.php');
require(OBST_SMARTYDIR.'../include/Smarty.class.php');
require(OBST_SMARTYDIR.'include/Smarty.class.php');
require(OBST_SMARTYDIR.'../include/Smarty.class.php');
?>

Helaas heb je het voor ons onmogelijk gemaakt om hier achter te komen. Op tktribal.100webspace.net/include/class.xdbSmarty.php krijgen we een blokkade...
Geef de directe paden eens op van die Smarty.class.php?
@TS;
Weet ik niet, jij bent degene die jouw file-structuur weet...?
De map hoort niet 'smarty.' te zijn, maar gewoon 'smarty'. Dat zie ik in ieder geval als ik naar je site ga.
Waar moet dat veranderd worden?

Reageren