Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter blazmate

    (@blazmate)

    I can’t think of any reason. The only other thing that may touch media is litespeed plugin.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi, @blazmate,

    Can you please clarify what you mean by “old files”? Do you mean files on the file system or references to the image on your pages?

    Either way, could you please tell us, step by step how to reproduce this? It would be useful if you could let us know what plugins you are using and what version too.

    Thank you,

    Thread Starter blazmate

    (@blazmate)

    I goto file A
    Drop in file B to replace

    In Media Library I can see now I have B
    In filesys I have A-100×100.jpg
    A.jpg

    It did remove the webp files. Which litespeed plugin creates.

    Plugin Support Gerard Blanco

    (@sixaxis)

    blazmate, I am sorry, but I still don’t fully understand the steps to reproduce the issue. Can you please elaborate on this?

    • What WebP files are you talking about?
    • Could you please share a screen recording of the issue, showing both the media library and the file system before and after the replacement has been done?
    • Could you share with us a list of all your installed plugins and their versions?

    Thank you,

    Thread Starter blazmate

    (@blazmate)

    I made a test site, inside I have these plugins

    Custom Post Type UI
    Enable Media Replace
    Slider Revolution
    litespeed
    WP File Manager
    Yoast SEO
    

    litespeed plugin creates webp versions of jpg files
    https://docs.litespeedtech.com/lscache/lscwp/imageopt/

    Now I look closer I don’t think it’s related. Litespeed takes care of webp, the main file is what’s left behind.

    Here’s a test I did next with litespeed plugin both ON and OFF
    The file left is actually different each time. Is it because those sizes are made by other random plugins?

    • This reply was modified 3 years, 9 months ago by blazmate.
    Thread Starter blazmate

    (@blazmate)

    Litespeed ON

    
    m-()-(5131 files, 169Mb)--> ll martha-logo*
    -rw-r--r-- 1  1930 Nov 18 14:29 martha-logo-100x72.png
    -rw-r--r-- 1  1364 Nov 18 14:40 martha-logo-100x72.png.webp
    -rw-r--r-- 1  1397 Nov 18 14:29 martha-logo-60x60.png
    -rw-r--r-- 1   802 Nov 18 14:40 martha-logo-60x60.png.webp
    -rw-r--r-- 1  6680 Nov 18 14:29 martha-logo.bk.png
    -rw-r--r-- 1  2037 Nov 18 14:40 martha-logo.png

    replace with replacefile1

    
    
    m-()-(5131 files, 169Mb)--> ll martha-logo*
    -rw-r--r-- 1  6680 Nov 18 14:29 martha-logo.png
    
    -()-(5134 files, 169Mb)--> ll replacefile1*
    -rw-r--r-- 1  24543 Feb 22 12:09 replacefile1-500x312.jpg
    -rw-r--r-- 1  88697 Feb 22 12:09 replacefile1.jpg

    Litespeed OFF

    
    -()-(5134 files, 169Mb)--> ll bob-logo*
    -rw-r--r-- 1  3273 Nov  2 12:06 bob-logo-100x70.bk.png
    -rw-r--r-- 1  3224 Nov  2 23:00 bob-logo-100x70.png
    -rw-r--r-- 1  2792 Nov  2 23:00 bob-logo-100x70.png.webp
    -rw-r--r-- 1  4783 Nov  2 12:06 bob-logo-60x60.bk.png
    -rw-r--r-- 1  3710 Nov  2 23:00 bob-logo-60x60.png
    -rw-r--r-- 1  1456 Nov  2 23:00 bob-logo-60x60.png.webp
    -rw-r--r-- 1  3700 Nov  2 12:06 bob-logo.bk.png
    -rw-r--r-- 1  3536 Nov  2 23:00 bob-logo.png
    -rw-r--r-- 1  3156 Nov  2 23:00 bob-logo.png.webp

    replace with xbox-360

    
    ()-(5134 files, 169Mb)--> ll bob-logo*
    -rw-r--r-- 1  3273 Nov  2 12:06 bob-logo-100x70.bk.png
    -rw-r--r-- 1  2792 Nov  2 23:00 bob-logo-100x70.png.webp
    -rw-r--r-- 1  4783 Nov  2 12:06 bob-logo-60x60.bk.png
    -rw-r--r-- 1  1456 Nov  2 23:00 bob-logo-60x60.png.webp
    -rw-r--r-- 1  3700 Nov  2 12:06 bob-logo.bk.png
    -rw-r--r-- 1  3156 Nov  2 23:00 bob-logo.png.webp
    
    ()-(5133 files, 169Mb)--> ll xbox-360*
    -rw-r--r-- 1  16763 Feb 22 12:11 xbox-360-500x500.jpg
    -rw-r--r-- 1  61638 Feb 22 12:11 xbox-360.jpg
    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi, blazmate,

    First, you can take out of the equation the WebP files. Enable Media Replace cannot know how those WebP files were generated, and therefore it will not replace them. So basically you need to re-optimize those images (once replaced) in order to generate again the WebP files.

    Now, about the 100×70 and 60×60 thumbnails, can you tell me what generates them?

    Thank you,

    Thread Starter blazmate

    (@blazmate)

    60×60 I’m guessing Featured Image Admin Thumb
    100x maybe CSS3 Responsive Compare Pricing Tables?

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi blazmate,

    I don’t know about CSS3 Responsive Compare Pricing Tables (I don’t have a license for it), but I just installed Featured Image Admin Thumb, and I tried to replace an image and it worked for all the files.

    This is the original upload: https://i.imgur.com/jpgLdCT.png
    And this is after I replaced the image (see the 60×60 file): https://i.imgur.com/mN0Qmub.png

    I’m not sure what can be happening, but if we can’t reproduce the issue I’m afraid I wouldn’t know how to help you ??

    Maybe you can try deactivating all plugins except Enable Media Replace, and then activate them one by one while uploading and replacing images until you detect what plugin is causing the issue?

    Thanks,

    Thread Starter blazmate

    (@blazmate)

    found this if it helps

    [09-Feb-2021 23:22:08 UTC] PHP Warning: Creating default object from empty value in /wp-content/plugins/media-file-renamer/classes/rest.php on line 246

    Plugin Support Gerard Blanco

    (@sixaxis)

    That’s not from us, blazmate ?? Our plugin is in the folder enable-media-replace, not media-file-renamer.

    Thread Starter blazmate

    (@blazmate)

    Oh ignore the log thing then.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Replaces but leaves orphan files on your system’ is closed to new replies.