Unlink error


(jstock) #1

Warning: unlink(C:\Edcor\piwik090/tmp/templates_c%%9A^9A3^9A34FA06%%index.tpl.php) [function.unlink]: No such file or directory in C:\Edcor\piwik090\libs\Smarty\internals\core.write_file.php on line 44

This is the error that I am getting when the pages load


(Matthieu Aubry) #2

You should set write permissions on the directory: C:\Edcor\piwik090/tmp/templates_c


(jstock) #3

The directory that you mention has write permissions set, this is not the problem.
If you actually look at the original error, you will notice that it says no such file or directory.
This problem occurs when the Smarty compiled file does not exist on the server.


(vipsoft) #4

You shouldn’t get any warning because Smarty uses the ‘@’ to suppress warnings. Sounds like a bug in your version of php.

In libs/Smarty/internals/core.write_file.php, change line 44 from:

@unlink($params['filename']);

to:

if(file_exists($params['filename'])) {
    @unlink($params['filename']);
}