Problem mit Smarty Template

Rev

Erfahrenes Mitglied
ich hab nen Problem mit smary. hab alles so eingerichtet wie es laut Anleitung sein sollte.

http://www.revproductions.de/firma/ari/admin/


bekomme folgenden Error:
Warning: Smarty error: problem creating directory "/%%-19/%%-1997794005" in /httpd/revproductions.de/data/firma/ari/libs/Smarty.class.php on line 1042

Warning: Smarty error: problem writing temporary file '/%%-19/%%-1997794005/3ef066a97e865' in /httpd/revproductions.de/data/firma/ari/libs/Smarty.class.php on line 1042

Ich habe alles so angelegt wie hier beschrieben.

Meine setup.php:
PHP:
<?php
define('SMARTY_DIR','/httpd/revproductions.de/data/firma/ari/libs/');

require(SMARTY_DIR.'Smarty.class.php');
require(SMARTY_DIR.'sql_class.php');

$db = new db_sql(); 

class set_templates extends Smarty {

   function set_templates() {
   

		// Konstruktor. Diese Werte werden für jede Instanz automatisch gesetzt

		$this->Smarty();

		$this->template_dir = '/httpd/revproductions.de/data/firma/ari/templates/';
		$this->compile_dir = '/httpd/revproductions.de/data/firma/ari/templates_c/';
		$this->config_dir = '/httpd/revproductions.de/data/firma/ari/configs/';
		$this->cache_dir = '/httpd/revproductions.de/data/firma/ari/cache/'; 
		
		$this->caching = true;
   }

}
?>

meine index.php
PHP:
<?php

require ("../libs/setup.php");
$smarty = new set_templates;


$smarty->display('admin/frame.tpl');

?>

eine phpinfo gibts hier


achja, die Rechte habe ich alle richtig gesetzt und unabhängig nochmal überprüfen lassen.
 
ähem...

smarty.jpg
 
Das Problem läßt sich eigentlich recht leicht beheben:

Du musst lediglich für Dein "templates_c"-Verzeichnis vollen Schreibzugriff gestatten. (Ich hoffe Du hast ein "templates_c"-Verzeichnis erstellt???)
 
Hallo, ich hab folgendes Problem:

Fatal error: Smarty error: the $compile_dir 'oa/templates_c/' does not exist, or is not a directory. in c:\apache\htdocs\oa\smarty\libs\Smarty.class.php on line 1143

das Problem ist, das dieser Ordner genau dort steht und eigentlich da ist.
 
Zurück