Support » Plugin: WordPress Media Library Folders » Thumbnails Copied (not moved)

  • In backing up my site I have just discovered an issue with thumbnails that differs from the one posted a couple of weeks ago.

    After publishing each page, I use MLF to create a named folder, …/uploads/page1/ say, and then move all the necessary media files from the date folder, …/uploads/yyyy/mm/, to the new named folder.

    This works perfectly in terms of site functionality. In MLF I can see that the date folder is empty and all the files (including thumbnails) have been transferred to the named folder. However, using ftp I can see that the thumbnails are in both folders.

    Investigation shows that this has been happening since April 2017 and about the time that I first started using MLF meaning that there are very many unnecessary duplicates of thumbnails occupying space and cluttering folders.

    This means that I must delete all of the duplicate thumbnails using ftp and then check that links are working for all of the pages affected.

    I am assuming that this should not be happening?

    My basic server environment details are:

    WordPress Version: 5.3
    PHP Version: 7.0.33
    MySQL Version: 5.7.28
    Web Server: Apache

    WordPress URL: http://blog.warwickconway.com/wp
    Home URL: http://blog.warwickconway.com/wp

    PHP cURL Support: Yes
    PHP GD Support: Yes
    PHP Memory Limit: 256M
    PHP Post Max Size: 999M
    PHP Upload Max Size: 999M

    WP_DEBUG: Disabled
    Multi-Site Active: No

    In the period during since 2017, I have been using a variety of browsers on Win 7/8.1/10 PCs.

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

    (@alanp57)

    I am not able to reproduce this issue. Since other users are not reporting this behavior, it may be something about the configuration of our site/server. You can check the file permissions of the thumbnails along as the ownership of these files.

    It also may help to turn on WordPress debugging to see if any errors are generated when moving a file. To turn on WordPress debugging, edit the site’s wp-config.php file and change

    define('WP_DEBUG', false);

    to

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    (Be sure to change this back when you are done.)

    This will allow different kinds of messages, some will not be related to Media Library Folders, to be written to a debug.log file in the wp-content folder. Now try moving a file and then check the debug.log.

    Thanks. I have checked the file permissions and these are the same (-rw-r-r-) for all the images whether they were moved or simply copied. I can see no indication as to ‘ownership’ but the affected files are from a variety of sources although mainly my own photographs or creations. I am the only administrative user who can post to my site.

    I will try the debugging option that you describe next time I use MLF to see what that reveals. Otherwise, my workaround will be to manually delete the duplicate thumbnails whenever I move media files which is no great hassle.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.