smarty template - unable to write to $compile_dir

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cshih16@yahoo.com

    smarty template - unable to write to $compile_dir

    my php file contains:
    $smarty->template_dir = BASE_DIR.'templ ates/';
    $smarty->compile_dir = BASE_DIR.'templ ates_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!

  • Janwillem Borleffs

    #2
    Re: smarty template - unable to write to $compile_dir

    cshih16@yahoo.c om wrote:[color=blue]
    > my php file contains:
    > $smarty->template_dir = BASE_DIR.'templ ates/';
    > $smarty->compile_dir = BASE_DIR.'templ ates_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?
    >[/color]

    The permissions are incorrect; modify to 777 to fix:

    $ chmod 777 templates_c

    Also, see the Smarty README and INSTALL files when provided.


    JW


    Comment

    • cshih16@yahoo.com

      #3
      Re: smarty template - unable to write to $compile_dir

      i just tried to set the permissions to 777... works now!!
      thank you so much, Janwillem!!

      Comment

      Working...