Hello, I noticed a problem.
When deleting a post, if the picture does not exist, it will not be deleted and an error will be reported.
Simple replication method: After installation, delete “installed” and install again. Each post will have a duplicate post. After deleting one, the other cannot be deleted.
To replace the file in the background, if the previous file does not exist, the same problem will be reported.
At the same time, I noticed a buyer’s comment a month ago, which may be the same as mine.
This is just a way to reproduce the problem. You can also modify two posts in the database to call the same file, which can reproduce the problem.If the attachment (picture, video…) of the post does not exist when deleting the post, an error will be reported.
Of course an error will happen. But, that case is imposible if you use the script in a normal situation. You have modified the database.
When an user upload an image or video, it will have a unique name. There will not two file with the same name. And of course, a regular user won’t delete the file ‘installed’. That case would happen if you want to reinstall the database, so you would have to empty the database too.
What I want to explain is that the errors in the script are when you make a normal use of the script.