Re: [SMARTY] Error upon updating Smarty

From: Date: Fri, 26 Aug 2005 06:49:20 +0000
Subject: Re: [SMARTY] Error upon updating Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12991@lists.php.net to get a copy of this message
--- Dark Siren Sally <darksiren@sbcglobal.net> wrote: > Hello. I'm now attempting to update Smarty from 2.5.0 to 2.6.10. > > So far all I've done was replace the old smarty directory with the > updated (2.6.10) one. I left the cache, configs, templates and > templates_c directories intact. > > When loading a web page in a subdirectory using Smarty, I get the > following error: > > Fatal error: Smarty error: the $compile_dir 'templates_c' does not > exist, or is not a directory. in > /home/darksire/public_html/smarty/libs/Smarty.class.php on line 1088 > > If I create templates_c in the subdirectory, it works fine. But I > wanted > to have a single templates_c directory kept in the web root > directory. I > also have a single templates directory in the web root, and Smarty > seems > to find this one fine. I'm baffled as to why it won't recognize my > templates_c. > > Is there some variable in Smarty.class.php I need to change so that I > > can have a single templates and templates_c directory for my whole > site? In general, yes. When you upgrade Smarty you should also clear out your templates_c and cache directories. > Thanks, > Sally __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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