Unlink no such file or directory
-
Looking on my error log I got a lot of this:
[26-Feb-2018 10:46:22 UTC] Array ( [error] => Warning [file] => /home/tksjdntw/domain/wp-content/plugins/w3-total-cache/lib/Minify/Minify/Cache/File.php [line] => 55 [path] => /home/tksjdntw/domain/wp-content/cache/minify/b1e1d.js [flag] => [debug] => [filter] => init [message] => Warning (2): unlink(/home/tksjdntw/domain/wp-content/cache/minify/b1e1d.js_old): No such file or directory [url] => https://domain/wp-content/cache/minify/b1e1d.js )
I fixed editing line 54 with:
if( file_exists($path . '_old') ) { @unlink($path . '_old'); } if( file_exists($path . '_meta_old') ) { @unlink($path . '_meta_old'); }
Use @ but this with specific configuration show the alert in any cases.
- The topic ‘Unlink no such file or directory’ is closed to new replies.