I thought I posted a fix for this a while ago.
I must have forgot, but I solved this sometime back.
Here is the fix:
The problem/bug is in maintain.php
after a member or admin deletes a video, it gets
marked 'pendingdelete' in the database.
Then when your in the admin page maintain
and go to System Maintenance, you see
"Deleted video awaiting removal from server"
so when you click to "delete completely"
the script does this:
//set file to "deleted" in database
$sql = "UPDATE videos SET approved ='deleted' WHERE indexer = $video_id";
@mysql_query($sql);
So they are still records in the database, but they are marked deleted,
but all querys to the video table will still show them as a video record.
open maintain.php
look for:
//set file to "deleted" in database
$sql = "UPDATE videos SET approved ='deleted' WHERE indexer = $video_id";
@mysql_query($sql);
change to:
//delete videos by $video_id (deleted)
$sql = "DELETE FROM videos WHERE indexer = $video_id";
@mysql_query($sql);
then the video records are actually deleted from the database
and all the errors / problems are solved.
cheers........
Bug Description: - A member has 20 uploaded videos. On the cpanel it says they have 30. I deleted 10 of their videos.