• Hello,

    I use the plugin for many years already and I love it.

    But for few months already, I delete eg. image01.jpg from the folder, and disappears.
    When I upload the new version of image01.jpg, it creates image01-1.jpg.

    Then I check by FTP that the first image is still there, so I’ve been almost one year double-deleting images, first from plugin, second from FTP for real deletion.

    I’ve contact hosting support and they say all plugins have Read/Write/Delete permissions, so I don’t know why the plugin doesn’t delete the images from the server.

    I’ve tried delete/install again the plugin.

    Thanks for your kind support!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author AlanP57

    (@alanp57)

    I’m not able to reproduce this issue on my test site. In addition to file permissions there could be the issue of file ownership. It may not be possible to delete a file if WordPress is not the ‘owner’.

    Also you should check the PHP version that is running on your site. PHP 7.2 is the recommended version for use with WordPress.

    And it may be helpful to open your browser’s console window and watch if there are any errors are displayed when deleting a file. If this happens, it could mean that there is a conflict with another plugin.

    Hello Alan,

    I’m having the same issue, and I’m on php 7.3. Is it compatible with 7.3?

    If so, do you know what kind of plugins would conflict with yours?

    Any help is appreciated!

    Thanks

    Plugin Author AlanP57

    (@alanp57)

    It should be compatible. But in my testing, that is the thing which has changed. Pervious I was using PHP 5.6 and deleting worked find. It is just a simple function call to delete a file and the code has not changed. Now I am using PHP 7.2 and it does not delete every time. I could look into checking if the delete was accomplished and try deleting again if the file is still present. I will look into this and get back to you.

    Thank you! We’re updating our plugins to see if that’s the issue. But let me know if you find something else.

    Plugin Author AlanP57

    (@alanp57)

    We are planning to release a new version on Monday that has additional code for deleting a media file and its thumbnail files.

    Plugin Author AlanP57

    (@alanp57)

    We have now released version 5.1.6 which addresses this issue.

    Thread Starter butterysam777

    (@butterysam777)

    Thank you so much, the new version fixes the problem I had!
    Really grateful!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin doesn’t delete files from server’ is closed to new replies.