niels194 Posted July 22, 2014 Share Posted July 22, 2014 Hello everybody, I have build my prestashop offline at localhost. When I moved the installation i followed this tut: http://blog.premium-templates.eu/how-to-move-prestashop-from-localhost-to-domain-or-vice-versa After that I got a white page. When I enabled errors the error below came out. What can I do, to make my prestashop work again? If you want to, you can see t here: http://munique.nl/showbeta Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/munique/domains/munique.nl/public_html/cache/smarty/compile/97/76/12/wrt53ce45b655e9c5.07930150' in /home/munique/domains/munique.nl/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/munique/domains/munique.nl/public_html/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/munique/d...', '<?php /* Smarty...', Object(Smarty)) #1 /home/munique/domains/munique.nl/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /home/munique/domains/munique.nl/public_html/classes/module/Module.php(1860): Smarty_Internal_TemplateBase->fetch() #3 /home/munique/domains/munique.nl/public_html/modules/homeslider/homeslider.php(477): ModuleCore->display('/home/munique/d...', 'header.tpl') #4 /home/munique/domains/munique.nl/public_html/classes/Hook.php(507): HomeSlider->hookdisplayHeader( in[/size]/home/munique/domains/munique.nl/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line [/size]44 Link to comment Share on other sites More sharing options...
bellini13 Posted July 22, 2014 Share Posted July 22, 2014 you have maintenance mode turned on, no one can see your site. based on the error message you are receiving, it would seem that you either have the wrong permissions on the compile and cache folders, or those folders do not exist. Link to comment Share on other sites More sharing options...
niels194 Posted July 22, 2014 Author Share Posted July 22, 2014 you have maintenance mode turned on, no one can see your site. based on the error message you are receiving, it would seem that you either have the wrong permissions on the compile and cache folders, or those folders do not exist. When you go to: muniqe.nl/showbeta You should be redirected and see the error. I checked the permissions and added a screenshot. Is this oke? Link to comment Share on other sites More sharing options...
bellini13 Posted July 22, 2014 Share Posted July 22, 2014 i said you have maintenance mode enabled, I cannot see this error, I see your maintenance page that says "under construction" Link to comment Share on other sites More sharing options...
niels194 Posted July 22, 2014 Author Share Posted July 22, 2014 I'm sorry, you are right. The redirect did not work as aspected. I removed it and now you can see the error. http://munique.nl In my previous post i uploaded an imge with the permissions. Are they correct, you think? Link to comment Share on other sites More sharing options...
bellini13 Posted July 22, 2014 Share Posted July 22, 2014 each host is different in their approach of their web server, so there is no "right" answer. 755 provides the owner of the files with write permissions, but what is needed is the web server user to have write permissions. I would suggest making those folders 777 temporarily to see if the issue goes away. if it does, then you need to work with your host to determine the correct permissions to use. you should not use 777 in a production environment Link to comment Share on other sites More sharing options...
niels194 Posted July 22, 2014 Author Share Posted July 22, 2014 I used 777 and now my shop is working. There are many websites that state that 777 is unsafe. Why is t so unsafe to use it with prestashop only on the necessary folders? Link to comment Share on other sites More sharing options...
indus Posted July 22, 2014 Share Posted July 22, 2014 (edited) Try 775 if that works. Safe enough. But like bellini said, you should work with your host to fix this problem. Edited July 22, 2014 by indus (see edit history) Link to comment Share on other sites More sharing options...
niels194 Posted July 22, 2014 Author Share Posted July 22, 2014 775 doesn't work. My hosts says its ok. Quote: This server is just a heavier security than the previous. It distinguishes between 'owner' of the site. Through direct admin: file management, you can give appropriate folders reset owner. Another method is 777, which I myself apply exclusively to those directories that need it. (upload folders for images and texts) Here I unfortunately can not change anything that's for the server administrator, which I had to trust yourself. See also: http://www.cb-national.nl/knowledgebase/65/Veiligheidsrisicos-777-is-niet-per-definitie-onveilig.html It is probably with you to upload and modify some pages to consciously 777 in this case. On this server you can also use ftp remove any files in directories that are placed without giving. Them reset owner via PHP upload That makes it safer (but difficult) So only those directories that the concerns set at 777! And the rest is not! Link to comment Share on other sites More sharing options...
bellini13 Posted July 22, 2014 Share Posted July 22, 2014 no clue what you are saying. if you are in a shared hosting environment, using 777 is not advisable. I would find a better host Link to comment Share on other sites More sharing options...
niels194 Posted July 23, 2014 Author Share Posted July 23, 2014 The quote was a email i received from my host. I translated it with google. Tnx for your help Link to comment Share on other sites More sharing options...
NemoPS Posted July 23, 2014 Share Posted July 23, 2014 For the sake of completeness, what is your host? 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