• Resolved Loran A. Rendel

    (@loranrendel)


    Hello.

    When I move some image to another folder there are junk thumbnails files left in original folder, like file-1086x1536.jpg.

    How could it be fixed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Loran A. Rendel

    (@loranrendel)

    Line 5712, maxgalleria-media-library.php

    $image_path = str_replace('.', '*.', $image_path );

    This breaks path to the folder, in my case it looks like
    /home/users/l/loran/domains/example*.com/wp-content/uploads/test

    Plugin Author AlanP57

    (@alanp57)

    We found that over time the thumbnail sizes specified by themes or plugin change. Thus thumbnail with obsolete sizes will not be moved to the new destination folder as WordPress no longer keeps track of them. You may need to manually review folders where files have been moved to find and remove such thumbnails. The Pro version of the Media Library Folders has a feature, Media Library Maintenance, that makes it easy to find and remove unwanted thumbnails or add files that are not yet imported into the media library.

    Plugin Author AlanP57

    (@alanp57)

    I will look into this and get back to you. I’m using version 7.0.3 which has that code in a different line number. What version of the plugin are you using?

    Thread Starter Loran A. Rendel

    (@loranrendel)

    I understand with obsolete sizes, bit it’s not my case. I tried to upload new file and then move it.

    The version is 7.0.3, installed today. In my file it’s line 5712.
    No problems after I’ve commented this line.

    Plugin Author AlanP57

    (@alanp57)

    Yes, taking the line out would make sense.

    Plugin Author AlanP57

    (@alanp57)

    I was not able to reproduce this issue. What server and version of PHP does your site use?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Junk files when moving image’ is closed to new replies.