Fatal error: Smarty error:
unable to write to $compile_dir
When you go to view your LPG project online and get this message below, we'll show you how to fix this.
Fatal error: Smarty error: unable to write to $compile_dir '/home/******/public_html/lpg/Smarty/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/******/public_html/lpg/Smarty/libs/Smarty.class.php on line 1092
This error is caused by your server changing the permissions on the folder "templates_c" to 755. We simply need to change the permission on this folder to 777 and this will fix the problem. Here's how to fix this...
Step 1: Login into your server using and FTP client so you can view your folders.
Locate the folder called "Smarty" and click on it. Inside you will see other folders. Locate the folder called "templates_c" (see below). Right click on this folder and go down to "properties" and click on this.
Doing this will open up the permissions window.
Notice how it's set to "755". We need to change this to "777" and we do this by checking the two "write" boxes. Once we do this it will change the number to "777" (see below).
Press "OK" and this will remove the error you had on your page. You should now see your LPG site.