470,874 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

smarty template - unable to write to $compile_dir

my php file contains:
$smarty->template_dir = BASE_DIR.'templates/';
$smarty->compile_dir = BASE_DIR.'templates_c/';

but still get error: unable to write to $compile_dir
'/home/templates_c'. Be sure $compile_dir is writable by the web server
user

what goes wrong? how to fix?

thanks a lot!

Jan 4 '06 #1
2 18208
cs*****@yahoo.com wrote:
my php file contains:
$smarty->template_dir = BASE_DIR.'templates/';
$smarty->compile_dir = BASE_DIR.'templates_c/';

but still get error: unable to write to $compile_dir
'/home/templates_c'. Be sure $compile_dir is writable by the web
server user

what goes wrong? how to fix?


The permissions are incorrect; modify to 777 to fix:

$ chmod 777 templates_c

Also, see the Smarty README and INSTALL files when provided.
JW
Jan 4 '06 #2
i just tried to set the permissions to 777... works now!!
thank you so much, Janwillem!!

Jan 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Brian | last post: by
2 posts views Thread by Daan | last post: by
1 post views Thread by Richard | last post: by
1 post views Thread by Jim Red | last post: by
reply views Thread by Matt | last post: by
reply views Thread by Conrad | last post: by
reply views Thread by grezlik | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.