Prestashop 1.6 Fatal error: Uncaught Smarty: Unable to Write File

So another error yet again in prestashop 1.6 with smarty unable to read file error as you can see in this screenshot.

prestashop error uncaught

! ) Fatal error: Uncaught –> Smarty: unable to write file C:\websites\clients\\site/cache/smarty/compile\50\78\98\50789864b6cd98792f1229ac54bb3182ad158639.file.product-2.tpl.php <– thrown in C:\websites\clients\\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:

define(‘_PS_MODE_DEV_’, false);

It’s not a permissions error because I’m loading from my localhost as administrator!!!

Access denied??!?!?

acces denied

I think its because it’s a new smarty page template file which I created?

File permissions looks ok.

prestashop error uncaught


Sam Deering

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *