This topic is locked

error 256

8/13/2008 10:22:43 AM
PHPRunner General questions
S
Scot author

Hi I am using a mysql db, all tests well locally, but when I go to register a record online I am getting this error:
[codebox]PHP error happened
Technical information

Error type 256

Error description Smarty error: unable to write to $compile_dir '/var/www/vhosts/mywebsite.com/httpdocs/GUEST/templates_c';. Be sure $compile_dir is writable by the web server user.

URL www.billbaber.com/GUEST/gest_add.php?

Error file /var/www/vhosts/billbaber.com/httpdocs/GUEST/libs/Smarty.class4.php

Error line 1099

SQL query [/codebox]
where can I find $compile_dir and how to make it writeable?

Thanks, Scot

J
Jane 8/14/2008

Scot,
It's a permission-related error.

You need to make sure templates_c directory is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.

S
Scot author 8/15/2008

Scot,

It's a permission-related error.

You need to make sure templates_c directory is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.


Thank you Jane, got that, Scot