veenarani2312 Posted November 29, 2021 Share Posted November 29, 2021 (edited) Running presta 1.5 This morning a customer informed me that if he logged in first to purchase any thing, an error displayed : Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/vhosts/aucourant.com/httpdocs/cache/smarty/cache/blocktopmenu/0/category/1/3/1/12/0/0/0/0/ad/3f/85/wrt591d99b91dec75.35282473' in /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/vhosts/moviesflix/httpdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(102): Smarty_Internal_Write_File::writeFile('/var/www/vhosts...', '<?php /%%Smart...', Object(Smarty)) #1 /var/www/vhosts/aucourant.com/httpdocs/movierulz/smarty/sysplugins/smarty_cacheresource.php(367): Smarty_Internal_CacheResource_File->writeCachedContent(Object(Smarty_Internal_Template), '<?php / %%Smart...') #2 /var/www/vhosts/jalshamoviez/httpdocs/tools/smarty/sysplugins/smarty_internal_template.php(230): Smarty_Template_Cached->write(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #3 /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php( in /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 Dashboard Advanced Permissions CHECK YOUR CONFIGURATION Required parameters: Please fix the following error(s) Set write permissions for the "cache" folder. Set write permissions for the "img" folder and subfolders. Set write permissions for the "modules" folder and subfolders. Optional parameters: OK Answer: Yes, it's connected. Make sure the cache, img and modules folders and their subfolders have chmod 755 permissions and the files have chmod 644 permissions. Had my provider update permissions [root@nekkar httpdocs]# chmod 755 cache [root@nekkar httpdocs]# chmod 755 img [root@nekkar httpdocs]# chmod 755 modules Now the website does not even load getting error message Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /var/www/vhosts/aucourant.com/httpdocs/cache/smarty/compile/ea/bf/2a/wrt591dd50157f4a9.89457671' in /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/var/www/vhosts...', '<?php /* Smarty...', Object(Smarty)) #1 /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /var/www/vhosts/aucourant.com/httpdocs/classes/module/Module.php(1623): Smarty_Internal_TemplateBase->fetch() #3 /var/www/vhosts/aucourant.com/httpdocs/modules/favoriteproducts/favoriteproducts.php(105): ModuleCore->display('/var/www/vhosts...', 'favoriteproduct...') #4 /var/www/vhosts/aucourant.com/httpdocs/classes/Hook.php(421): FavoriteProducts->hookDisplayHeader(Array) #5 /var/w in /var/www/vhosts/aucourant.com/httpdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44 Help ! Edited December 7, 2021 by veenarani2312 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted November 30, 2021 Share Posted November 30, 2021 hi, check that the hosting provider did not switch your php to php7 and drop php 5, this is very common issue. Link to comment Share on other sites More sharing options...
JBW Posted December 3, 2021 Share Posted December 3, 2021 Maybe you are exceeding the disc space or number of files limit? 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