• Resolved Gal Baras

    (@galbaras)


    For some reason, when I replace an image, its thumbnails aren’t being regenerated.

    I have Media File Renamer, Image Regenerate & Select Crop and EWWW Image Optimizer active, if this makes a difference. I’d be looking at action priority, perhaps, because normal uploads are processed correctly by all of these plugins.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Gal,

    First question, what version of Enable Media Replace you have installed?

    Second, could you please run a quick test? Please do the following:
    – Deactivate all plugins except ShortPixel.
    – Activate all plugins, one by one.
    – After each single activation, check if the issue still happens. This will help you identify what plugin causes this (if it is indeed another plugin).
    – If that doesn’t help, please send us more information about how exactly you see that thumbnails aren’t being regenerated.

    Thank you,

    Thread Starter Gal Baras

    (@galbaras)

    Hi Gerard,

    I’ve installed v3.6.0.

    Looks like Image Regenerate & Select Crop is the culprit. When it’s deactivated, thumbnails are regenerated, optimised and renamed.

    Importantly, once the file is loaded, Image Regenerate & Select Crop happily regenerates its thumbnails, which are then optimised by EWWW and renamed.

    Cheers,
    Gal

    • This reply was modified 2 years, 6 months ago by Gal Baras.
    Plugin Support Gerard Blanco

    (@sixaxis)

    Thanks for letting us know, Gal!

    Thread Starter Gal Baras

    (@galbaras)

    Sure thing. I’ve also tried to find the problem myself, but couldn’t. Hopefully, you can do it quicker than I can.

    A couple of comments from looking at the code:

    1. thumbnail_updater.php seems like a class file, but “lives” in the plugin’s home directory, instead of the classes subdirectory
    2. On lines 488-496 of classes/replacer.php, seems like the variable $side should be $size

    P.S. Let’s leave this thread as unresolved until a fix is released.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Gal,

    I think there’s been some confusion here. Can you please clarify where the issue is located? From what you say, if “Image Regenerate & Select Crop” is deactivated, everything works correctly, so my understanding is that the issue is on their side.

    Thank you,

    Thread Starter Gal Baras

    (@galbaras)

    Plugin conflicts aren’t that simple. The other plugin also works well in regular uploads, and MAY only have issues when images are replaced by YOUR plugin.

    Please investigate this further. In the meantime, I will cross-report.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Gal,

    In order to investigate this further, could you please tell us step by step how to reproduce the issue? Please indicate what option we should choose, expected results, etc. Screenshots may also help :-).

    Thank you,

    Thread Starter Gal Baras

    (@galbaras)

    1. Install the two plugins
    2. Replace an image – Image Only
    Plugin Support Gerard Blanco

    (@sixaxis)

    Thank you, Gal.

    I was able to reproduce the issue, but when I try to do the same with reGenerate Thumbnails Advanced, which does the same function, it works correctly.

    So again, it all looks like an issue coming from the other side: Enable Media Replace kicks off the wp_handle_upload action, and does wp_generate_attachment_metadata, usually the hooks plugins listen to.

    All of this is done in the Replacer.php -> replaceWith function. You should check if the other plugin listens to that properly.

    I hope that helps!

    Thread Starter Gal Baras

    (@galbaras)

    Thank you for this. Actually, wp_handle_upload is a filter, not an action, and wp_generate_attachment_metadata() is a function with a similarly-named filter. Either way, I’ve relayed this to the other plugin’s author.

    Thread Starter Gal Baras

    (@galbaras)

    Have you tested this at all? Just assuming your plugin is doing the right thing seems a bit much. I don’t think this is resolved yet.

    Please try to replicate and isolate the issue.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Gal,

    Yes, we tested it and our developers took a look at the issue.

    From our side, everything is working properly: EMR does the job it’s supposed to do and signals to regenerate the thumbnails. Other plugins like reGenerate Thumbnails Advanced work properly.

    Have a nice Sunday!

    Thread Starter Gal Baras

    (@galbaras)

    FYI, this issue has been resolved by changing action priorities in Image Regenerate & Select Crop.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Thanks, Gal, for letting us know!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Not triggering thumbnail regeneration’ is closed to new replies.