Remove file: file is deleted from disk but filename not removed from database
A bug in 2.1.0, submitted by peterzimon on 04 August 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#380: Remove file: file is deleted from disk but filename not removed from database
Your issue appears to be related to the one I submitted.
http://getsymphony.com/discuss/issues/view/375/#position-4
Can you see what the XML output looks like? Thanks.
Pulled creativedutchman’s fix http://github.com/creativedutchmen/symphony-2/commit/ff21e79da6438c605e4351db883678bfa9cc3423
Hopefully that does the trick.
Tried the fix, thankfully uploads are now removed from the database, when you click the ‘remove’ link.
However when I upload something I get the following warning in the log, also the problem with an empty element remains. So half fixed. Maybe they are unrelated problems.
WARNING: 2 - unlink(/public_html/workspace/uploads/articles/) [<a href='function.unlink'>function.unlink</a>]: Is a directory in file /public_html/symphony/lib/toolkit/class.general.php on line 645
Closing this issue. Initial problem appears to be fixed. New issue is discussed http://getsymphony.com/discuss/issues/view/375/
This issue is closed.
Here’s the process:
Result: the file gets deleted from the drive but the entry still has the filename therefore the data sources passes the entry data as if the file were still existing.
I know that there were discussions about file deletion but in issues like #82 it’s just the way around.