So another error yet again in prestashop 1.6 with smarty unable to read file error as you can see in this screenshot.
! ) Fatal error: Uncaught –> Smarty: unable to write file C:\websites\clients\shop.megagen.fr\site/cache/smarty/compile\50\78\98\50789864b6cd98792f1229ac54bb3182ad158639.file.product-2.tpl.php <– thrown in C:\websites\clients\shop.megagen.fr\site\tools\smarty\sysplugins\smarty_internal_write_file.php on line 74
Solution on localhost:
“I figured it out. Windows XP has a 255 character limit for filenames. Maybe a feature request would be for Smarty to reduce templates_c filenames to ensure that they are less than 255 characters. I fixed my problem by moving my project working directory to C:\workspace”
Solution on server:
cd sitefolder
chmod 777 cache/*
*this only temporarily fixed it.
Other testings:
configs
define(‘_PS_MODE_DEV_’, false);
It’s not a permissions error because I’m loading from my localhost as administrator!!!
Access denied??!?!?
I think its because it’s a new smarty page template file which I created?
File permissions looks ok.
References: