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

Here’s the process:

  1. Upload a file to a section
  2. Remove the file using the ‘Remove file’ link
  3. Save the entry

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details