Jump to content

Fatal error: Uncaught Smarty: unable to write file smarty/compile


Przemo04

Recommended Posts

Hello,

I have the problem with my prestashop 1.6
after moving the my prestashop to another server (VPS nginx) in the nginx logs shows the following error:

 <-- 
  thrown in /usr/local/nginx/html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46" while reading response header from upstream, client: 85.193.212.81, server: 167.99.251.166, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "167.99.251.166"
2018/04/20 08:11:21 [error] 13398#0: *617 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught  --> Smarty: unable to write file /usr/local/nginx/htmlcache/smarty/compile/cd/41/8f/wrt5ad9a0a9009763_73893587 <-- 
  thrown in /usr/local/nginx/html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46" while reading response header from upstream, client: 85.193.212.81, server: 167.99.251.166, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "167.99.251.166"

I find related topic https://www.prestashop.com/forums/topic/348731-solved-fatal-error-uncaught-exception-smartyexception-with-message-unable-to-write-file/ and
I tried to solve this by removing the cache from the cache / smarty / compile directory but unfortunately it did not help :(
 

Link to comment
Share on other sites

  • 7 months later...

i have same error 

 

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/tunisiasut/public_html/cache/smarty/compile/eb/56/3e/wrt5c1a5b29ceb4a6_60610140' in /home/tunisiasut/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:46 Stack trace: #0 /home/tunisiasut/public_html/tools/smarty/sysplugins/smarty_internal_template.php(213): Smarty_Internal_Write_File::writeFile('/home/tunisiasu...', '<?php /* Smarty...', Object(SmartyCustom)) #1 /home/tunisiasut/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /home/tunisiasut/public_html/classes/SmartyCustom.php(110): Smarty_Internal_TemplateBase->fetch('controllers/mod...', NULL, NULL, NULL, false, true, false) #3 /home/tunisiasut/public_html/classes/controller/AdminController.php(2278): SmartyCustomCore->fetch('controllers/mod...') #4 /home/tunisiasut/public_html/classes/controller/AdminController.php(2777): AdminControllerCore->initModal() #5 /home/tunisiasut/public_h in /home/tunisiasut/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...