Jump to content

[SOLVED] problem with Warning: file_put_contents


Recommended Posts

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

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

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

  • 3 years later...
×
×
  • Create New...