Re: [SMARTY] Installation problems

From: Date: Sat, 08 Feb 2003 11:39:55 +0000
Subject: Re: [SMARTY] Installation problems
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7589@lists.php.net to get a copy of this message
On Sat, Feb 08, 2003 at 12:13:18PM +0100, Felix wrote: > > Hello! > > I've just been trying to get Smarty installed on my webspace for more than 3 hours. > > I followed the installation instructions from the installation help file. > > I created the following dir's: > > http://www.domain.com/include/templates/ (chmod: 777) > > -> header.tpl > > -> index.tpl > > -> footer.tpl > > http://www.domain.com/include/templates_c/ (chmod: 777) > q> http://www.domain.com/include/cache/ (chmod: 777) > > http://www.domain.com/include/plugins/ (chmod: 777) > > -> all plugins inside > > http://www.domain.com/include/ (chmod: 777) > > -> Smarty.class.php (chmod: 777) > > -> Config_File.class.php (chmod: 777) > > -> Smarty_Compiler.class.php (chmod: 777) > > -> index.php (chmod: 777) > > -> debug.tpl (chmod: 777) the problem is, you have smarty in 'include' and not in the directory where index.php is. that is good, but you have to set SMARTY_DIR to __FILE__.'/include/' in your index.php or set $smarty->compile_dir , $smarty->template_dir etc. accordingly, so that smarty can find it's files. additionally: only templates_c and cache have to be writable by the webserver. all others have to be (and should be) only readable by the webserver. have fun messju > But it doesn't work as it is supposed to :(. > > The following error messages are printed: > > Warning: Smarty error: problem writing > 'templates_c/%%117/%%1172603085/index.tpl.php.' in > /www/htdocs/v033802/include/Smarty.class.php on line 1021 > > Warning: unable to create file templates_c/%%117/%%1172603085/index.tpl.php because No such > file or directory in /www/htdocs/v033802/include/Smarty.class.php on line 1441 > > Warning: Failed opening 'templates_c/%%117/%%1172603085/index.tpl.php' for inclusion > (include_path='.:..') in /www/htdocs/v033802/include/Smarty.class.php on line 1128 > > > > So I checked the include path via phpinfo and it is defined as .:.. > > Please help me! > > Thanks in advance. > > Felix > > > > --------------------------------- > Gesendet von http://mail.yahoo.de. > Bis zu 100 MB Speicher bei http://premiummail.yahoo.de. -- Giga: Teletubbies für Skriptkinder. Joerg-Olaf Schaefers

« previous php.smarty.general (#7589) next »