Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Unable to write file [Presta Apache on W2109server]

Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Smarty n00b

Joined: 27 Jul 2021
Posts: 1

PostPosted: Tue Jul 27, 2021 4:06 pm    Post subject: Unable to write file [Presta Apache on W2109server] Reply with quote

I'm total newbie, but after my webmaster told me it's "probably windows issue" I decided to explore and hopefully someone will direct me.

I have dedicated server with on windows 2019 and we added one website on Prestashop. I ordered ready to go integration with Adobe Stock based on Prestashop plugins, and I know there are dozens of other installations, but only mine has issues with writing errors on regular basis.

I'm getting "
(1/1) SmartyException
unable to write file D:\prestashop\mywebsitename\var\cache\dev\smarty\compile\96\a1\5a\96a15a94880da2ecbe58e9d87db0ed9bbd64f214_2.file.icon.tpl.php
in smarty_internal_runtime_writefile.php line 90
at Smarty_Internal_Runtime_WriteFile->writeFile('D:\\prestashop\\mywebsitename\\var\\cache\\dev\\smarty\\compile\\96\\a1\\5a\\96a15a94880da2ecbe58e9d87db0ed9bbd64f214_2.file.icon.tpl.php', '<?php/* Smarty version 3.1.33, created on..."

I don't think it's caused by lack of write perimission. I checked them multiple times: also refreshing page helps and it seems to be random.

My instance is the only one of many that was installed on windows server, and I think it might be the reason, but I hope it can be fixed, as I don't want another server machine to manage.

I can see comment:
* Windows' rename() fails if the destination exists,
* Linux' rename() properly handles the overwrite.
* Simply unlink()ing a file might cause other processes
* currently reading that file to fail, but linux' rename()
* seems to be smart enough to handle that for us.

in smarty_internal_runtime_writefile.php but I'm not sure if that has anything to do with my problem.

Can someone please instruct me (or my webmaster) where to look?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP