• Resolved codings

    (@codings)


    Specifically looking at WooCommerce product listings where there are rows of products with featured images as the thumbnails…

    First, running the regenerate thumbnails seems to regenerate them but some do not register on the site, so even though the new thumbnail file exists, it’s not being displayed. Some are, some are not.

    Tried with Skip box checked and Delete box checked. Tried when running the plugin for all images and only featured images.

    Then, when trying to go fix each individual featured image in the image library, it will regenerate the single image I run the plugin for, but then when going back to check the product listing page it resets the featured image next to it!

    Like this:

    Image A | Image B | Image C
    A is the correct thumbnail, B is not, C is correct.
    Run the regenerator on image B >> B is now correct, but A is not

    Very frustrating.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @codings ,

    To clarify – this is happening only on featured products?

    How are those products set up? Does it matter what type of product (ie, downloadable vs simple, etc.?)

    How are you uploading images? (ie, via the product edit/add product image, via the media library, etc.?) What type of images are they (.png, .jpg, etc)

    when trying to go fix each individual featured image in the image library

    What do you mean by ‘fix’ in this case? How are you fixing them?

    Can you elaborate clearly on how to generate the problem you’re seeing? Can you take me through your workflow step by step? I’d like to go through it on a test site, but I need more information to do so.

    Can you link us to a copy of your WooCommerce->Status report, so we can get a better context for your site/server environments?

    Best,

    Cena

    Thread Starter codings

    (@codings)

    How are those products set up? Does it matter what type of product (ie, downloadable vs simple, etc.?)

    Only simple products. Not only happening with featured images, but featured images are the most noticeable because of how it makes product listings have all uneven images (due to them not being the correct size after regen).

    How are you uploading images? (ie, via the product edit/add product image, via the media library, etc.?) What type of images are they (.png, .jpg, etc)

    Images are uploaded via the Add New Product/Edit Product page > Product Image & Product Gallery boxes.

    when trying to go fix each individual featured image in the image library

    What do you mean by ‘fix’ in this case? How are you fixing them?

    “Fix” meaning regenerate again.

    Can you elaborate clearly on how to generate the problem you’re seeing? Can you take me through your workflow step by step? I’d like to go through it on a test site, but I need more information to do so.

    Just simply making changes to the image sizes that are wanted on the site, for example if you were to change to a theme that has different sized images registered, if you register your own custom sizes, etc… then regenerate. That’s all.

    Can you link us to a copy of your WooCommerce->Status report, so we can get a better context for your site/server environments?

    LiteSpeed server. PHP 7.4.3. PHP post max size 512MB. PHP time limit 300. cURL 7.84.0, OpenSSL/1.1.1d. MySQL 5.5.5-10.5.12-MariaDB-cll-lve. GZip etc on. WC DB 6.7.0.

    Thank you for looking into this. Regenerate images from product A, the images from product B reset, regenerate images from B, the images from A reset. It’s like playing Mole Buster lol.

    Off topic, the new style for replies here is so bad.

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    Thank you for providing details here!

    In case it helps, here is the query Regenerate Thumbnails use to get featured images to regenerate.

    Based on what you’re saying, I suspect that post meta is getting mixed up somehow, which Regenerate Thumbnails use to reference thumbnail image:

    $featured_image_ids = $wpdb->get_results( $wpdb->prepare(
                "SELECT SQL_CALC_FOUND_ROWS meta_value AS id FROM {$wpdb->postmeta} WHERE meta_key = '_thumbnail_id' GROUP BY meta_value ORDER BY MIN(meta_id) LIMIT %d OFFSET %d",
                $per_page,
                ( $per_page * $page ) - $per_page
            ) );

    Would you check your database to make sure it’s correct feature image for the regenerated thumbnails? Also, would you check and see if there’s another plugin or theme messing up with your post metas?

    You can try testing this by temporarily disabling other plugins and switching to a default WordPress theme, and running regenerate thumbnail again. You can use Health Check plugin to do this plugin/theme conflict test without affecting your live site: https://www.ads-software.com/plugins/health-check/.

    Let us know how that goes!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regenerating one thumbnail resets another’ is closed to new replies.