•  
      request #31194 Cannot delete an uploaded file
    Infos
    #31194
    Manuel Vacelet (vaceletm)
    2023-04-11 09:17
    2023-03-23 17:56
    32798
    Details
    Cannot delete an uploaded file

    Given a file I uploaded that I want to delete; When I'm doing so I'm getting the following error:

    Error deleting file: Invitee.png
    
    Error deleting file: Could not create directory "mwstore://local-backend/local-deleted/l/9/1". 
    
    Mediawiki Standalone
    14.6
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Robert Vogel (rvogel), Dejan Savuljesku (dsavuljesku)
    Stage
    Empty
    Closed
    2023-04-07
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Robert Vogel (rvogel)2023-03-28 15:55

    How about all the subdirectories? In such cases it needs to write into images/deleted/ and/or images/archive/. Those folder are not used on the initial upload.

    The sub-path l/9/1 looks odd. I'd have expected something like 4/47. Can you please set

    $wgDebugLogFile = "$IP/cache/debug.php";
    

    in your LocalSettings.php file and retry. Afterwards we should see more details on the log file.

    -- https://www.mediawiki.org/wiki/Manual:$wgDebugLogFile

    User avatar

    Can you confirm the webserver user is allowed to write into the images/ directory of the wiki instance?

    Yes I confirme because I was able to upload the image in the first place.

    User avatar
    Robert Vogel (rvogel)2023-03-28 11:24

    This sounds like a file system permission error. Can you confirm the webserver user is allowed to write into the images/ directory of the wiki instance?