Weird error I get at random doing different things on vB2.2.0.
Last time I was able to catch it:
I was deleting a thread on a forum that requires prevalidation from the admin control panel. I noticed the error right after pressing the submit button:
Warning: Unlink failed (No such file or directory) in /usr/local/etc/httpd/...path.../forums/admin/functions.php on line 1781
Deleted thread: 3733
Then, surfing functions.php, line with the problem is:
unlink($path);
of the following routine:
PHP Code:
// ###################### Start removeattachment #######################
function removeattachment ($attachmentid) {
global $DB_site,$attachpath;
$fileinfo = $DB_site->query_first("SELECT attachmentid, hash FROM attachment WHERE attachmentid='$attachmentid'");
$path = "$attachpath/$fileinfo[hash].file";
unlink($path);
}
What's going on? I've seen the error appearing at random while using the forums, but haven't been able to capture it until today.
Thanks!