This topic is locked

Smarty error: unable to write to $compile_dir

4/11/2008 5:40:19 PM
PHPRunner General questions
J
jstrickler author

Hello,

First time using PHPRunner. I created all my pages and I receive this error when trying to view. I'm loading the web files in a webdirectory on my MacOSX Server. I'm already running MySQL with php pages on the machine so I'm not sure whats wrong. Below is the detailed error. Any help is appreciated. Thanks!
PHP error happened
Technical information

Error type 256

Error description Smarty error: unable to write to $compile_dir '/Library/WebServer/elkweb/test/phpRunner/templates_c'. Be sure $compile_dir is writable by the web server user.
Error file /Library/WebServer/elkweb/test/phpRunner/libs/Smarty.class4.php

Error line 1099

SQL query SELECT ID, `First`, `Last`, Middle, EmployeeID, username, Subjects, JobTitle, Grades, BaseSchool, AdditionalSchools FROM Staff ORDER BY BaseSchool, `Last`

J
Jane 4/14/2008

Jeff,
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 webhoting company to help you with this.