Neo Posted November 18, 2016 Share Posted November 18, 2016 I just moved a site to a new Ubuntu 16 server and experience the following error: Warning: touch(): Utime failed: Operation not permitted in /var/www/html/wire/core/FileCompiler.php on line 329 Any idea what the problem could be? 1 Link to comment Share on other sites More sharing options...
adrian Posted November 18, 2016 Share Posted November 18, 2016 Sounds like a file permissions issue. Make sure the owner and permissions are correct for the /site/ folder and based on that error especially for the /site/assets/cache/FileCompiler/ folder. 2 Link to comment Share on other sites More sharing options...
Neo Posted November 18, 2016 Author Share Posted November 18, 2016 I just emptied the cache of the AIOM-module and the error disappeared once I visited every single template. Not sure what the problem is... 2 Link to comment Share on other sites More sharing options...
BitPoet Posted November 19, 2016 Share Posted November 19, 2016 This happens when the user PHP runs as isn't the owner of the cache files. The file compiler tries to update the cache files with the modification time of their originals, and while writing to that file can succeed through group permissions, updating the modification time fails unless issued by the owner. Clearing the cache removes the cache files and recreates them with the PHP user as the owner, so the problem is gone. 8 1 Link to comment Share on other sites More sharing options...
alan Posted October 31, 2017 Share Posted October 31, 2017 THANK you @BitPoet for the answer and @Neo for posting this Q — totally saved me from a frustrating end to a day of coding. I suppose standard practice for uploading a site is to not transfer the contents of the /assets/cache/ folder? If so, I'll bet this is documented and I missed it… 1 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