Johnny1989 Posted July 7, 2014 Share Posted July 7, 2014 (edited) Hello community! I'm pretty new to Prestashop and I've found myself with a little problem after the installation. I did exactly everything the installer says and after that, all went O.K. and I could access my back office (A.K.A. Admin Panel) and I could see my website with the default theme and articles. After that I changed the permissions in my FTP to "755" in folders and "644" (from "777"). The thing is that after doing so I get the following error: Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/vhosts/publicacionestecnicas.com/httpdocs/bike/prestashopbo/cache/smarty/cache/blocksearch_top/1/1/6/5b/6f/5f/wrt53baaf5827a980.39069694' in /var/www/vhosts/publicacionestecnicas.com/httpdocs/bike/prestashopbo/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/vhosts/publicacionestecnicas.com/httpdocs/bike/prestashopbo/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(102): Smarty_Internal_Write_File::writeFile('/var/www/vhosts...', 'writeCachedContent(Object(Smarty_Internal_Template), 'write(Object(Smarty_Internal_T in /var/www/vhosts/publicacionestecnicas.com/httpdocs/bike/prestashopbo/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 It seems that my shop will only work with "777" permissions. Any idea of why is that? Thanks in advance, Johnny, Edited July 7, 2014 by Johnny1989 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2014 Share Posted July 7, 2014 it's probably due to the host configuration btw. only cache folder needs recursive writable permissions Link to comment Share on other sites More sharing options...
Johnny1989 Posted July 8, 2014 Author Share Posted July 8, 2014 I do not understand you at all. I own a server myself and I host it in my server, so don't think those are host problems... About your second point, what do you mean? Only cache needs 777 permissions? What about Smarty? It seems my problem is from somewhere in Smarty. What's Smarty anyway? Thanks for your answers, and sorry if they sound newbie'ish. Link to comment Share on other sites More sharing options...
minxymoggy Posted July 10, 2014 Share Posted July 10, 2014 Smarty is the template system behind Prestashop's visual output. You do need the Smarty Cache folders to be writable. The only way you can make those unwritable is to disable caching and run a very slow store. Cache folders are yourServerPath/tools/smarty and it's subfolders. Set the correct permissions for them and Smarty will generate cached files rather than regenerate your store for every request, giving better performance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now