You are here: Re: [SMARTY] Error upon updating Smarty « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Error upon updating Smarty

Posted by boots on 08/26/05 09:49

--- 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация