Re: [SMARTY] Error upon updating Smarty

boots <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
--- Dark Siren Sally <[email protected]> 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 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.