shahriar Posted January 15, 2014 Share Posted January 15, 2014 Hello , i moved my shop to new host and with new domain and done all thing to need to change for moving but BO and FO was blank page , i turn on debug and got this error . Warning: file_put_contents(/var/www/config/xml/default_country_modules_list.xml): failed to open stream: Permission denied in /var/www/classes/controller/AdminController.php on line 1543 Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/cache/smarty/compile/3e/6f/3a/wrt52d71dbd16f108.37691953' in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/var/www/cache/...', 'compileTemplateSource() #2 /var/www/classes/controller/AdminController.php(1261): Smarty_Internal_TemplateBase->fetch() #3 /var/www/classes/controller/Controller.php(185): AdminControllerCore->display() #4 /var/www/classes/Dispatcher.php(348): ControllerCore->run() #5 /var/www/admin75/index.php(53): DispatcherCore->dispatch() #6 {main} thrown in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 Link to comment Share on other sites More sharing options...
shahriar Posted January 16, 2014 Author Share Posted January 16, 2014 when im trying to login in BO got this error Warning: file_put_contents(/var/www/config/xml/default_country_modules_list.xml): failed to open stream: Permission denied in /var/www/classes/controller/AdminController.php on line 1543 Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/cache/smarty/compile/3e/6f/3a/wrt52d72332146f82.70124910' in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/var/www/cache/...', 'compileTemplateSource() #2 /var/www/classes/controller/AdminController.php(1261): Smarty_Internal_TemplateBase->fetch() #3 /var/www/classes/controller/Controller.php(185): AdminControllerCore->display() #4 /var/www/classes/Dispatcher.php(348): ControllerCore->run() #5 /var/www/admin75/index.php(53): DispatcherCore->dispatch() #6 {main} thrown in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2014 Share Posted January 16, 2014 change chmod for file mentioned in error code: config/xml/default_country_modules_list.xml change it for example to 777 Link to comment Share on other sites More sharing options...
shahriar Posted January 16, 2014 Author Share Posted January 16, 2014 Changed Permission to 777 , now got this error Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/cache/smarty/compile/3e/6f/3a/wrt52d7340bcec640.87629850' in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/var/www/cache/...', 'compileTemplateSource() #2 /var/www/classes/controller/AdminController.php(1261): Smarty_Internal_TemplateBase->fetch() #3 /var/www/classes/controller/Controller.php(185): AdminControllerCore->display() #4 /var/www/classes/Dispatcher.php(348): ControllerCore->run() #5 /var/www/admin75/index.php(53): DispatcherCore->dispatch() #6 {main} thrown in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 Link to comment Share on other sites More sharing options...
shahriar Posted January 16, 2014 Author Share Posted January 16, 2014 Resolved , Just set all folder permission on cashe>smarty 777 , it become ok Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2014 Share Posted January 16, 2014 thank you for information where the problem was and how you solved it. in this case i can mark this topic as solved. i also changet title a bit with regards, Milos Link to comment Share on other sites More sharing options...
cast Posted April 1, 2017 Share Posted April 1, 2017 isn't it very not secure with 777 ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts