|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Synchro Smarty Regular
Joined: 27 Apr 2008 Posts: 43
|
Posted: Mon Sep 08, 2014 12:28 pm Post subject: clearCompiledTemplate writing to /run/lock/lvm |
|
|
Sometimes when I call clearCompiledTemplate, I get a fatal permission denied error for attempting to access /run/lock/lvm, resulting in an uncaught exception. This path does not appear anywhere in my code base, nor Smarty, but this path is used by the OS to control locking, and so may be used indirectly while attempting to access any file or folder. Specifically it's used by LVM - however, the servers this is on do not use lvm.
I've managed to deal with the problem in the clearCompiledTemplate function in smarty_internal_utility.php by wrapping the for loop ("foreach ($_compile as $_file) {", which is the line the exception is thrown on) in a try/catch block. Do you have any idea why it would be attempting to do this? |
|
Back to top |
|
|
|
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
|