Re: [SMARTY] Cache Issues

From: Date: Thu, 23 Jan 2003 06:41:30 +0000
Subject: Re: [SMARTY] Cache Issues
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7305@lists.php.net to get a copy of this message
I think you need to set $smarty->compile_dir to the absolute path to your templates_c directory. It looks like your webserver is trying to create cache files in the server root directory (/). cheers, Travis Met @ Uber wrote:
I'm attempting to use the cache feature of Smarty but I keep getting the following errors.
   Warning: Smarty error: problem creating directory       "/%2FPaper%2F/%%117/%%1172603085" in    /usr/local/www/Paper/lib/Smarty.class.php on line 589
Warning: Smarty error: problem writing '/%2FPaper%2F/%%117/%%1172603085/index.tpl.php.' in /usr/local/www/Paper/lib/Smarty.class.php on line 589 The errors line the top of the displayed HTML page rather than stopping the whole page. The only thing I have to do to cause this is to set "$smarty->cache = true". I followed the directions for installing Smarty which involved "mkdir templates_c", changing it's owner/group to that of the web server (nobody:nobody in my case) and allowing full control of that directory by its owner/group (chmod). Nonetheless, I still get these errors. Any suggestions? I'm the server off of my machine which is running RedHat Linux 8. Thanks in advance, ~ Metnetsky
-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>

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