Error upon updating Smarty
| From: | Dark Siren Sally | Date: | Fri, 26 Aug 2005 06:02:25 +0000 |
| Subject: | Error upon updating Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12990@lists.php.net to get a copy of this message | ||
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?
Thanks,
Sally