Addition:
Even when I open the product with the wrong picture, click on the picture and delete it permanently from the media library, then delete the product and reupload that product, the wrong picture is simply back.
If I then open the product again and click on that incorrect picture, it opens the media library and shows a checkbox on the CORRECT picture. So in that screen, all is good. But then when I close it, I still have that wrong picuture. Even if I change the product picture to something else, and then back to the correct picture in the media library, that incorrect picture is back. I really have no idea where it comes from. I have already disabled caching.
Hi @teuptworkshop
It sounds like you’re experiencing a persistent issue with product images, despite your efforts to correct them. This could be due to a caching issue; however, you mentioned that you’ve already disabled caching, which should have resolved the problem.
Another possibility is that the issue might be related to your browser’s cache. You could try clearing your browser’s cache and cookies to see if that resolves the problem. You can follow our detailed guide on clearing browser cache here: https://wordpress.com/support/browser-issues/#clearing-your-browser-cache
If you’re still seeing the incorrect images after trying this, head over to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients – Clear
- Expired transients – Clear
- Clear template cache – Clear
- Capabilities – Reset Capabilities
- Clear customer sessions -Clear
- Product lookup tables – Regenerate
- Regenerate the product attributes lookup table – Regenerate
As another workaround, you could try changing the file names of the correct images before uploading them. This would force WordPress to recognize them as new images and hopefully prevent the old, incorrect images from reappearing.
If this doesn’t work, you can run a conflict test to help you identify the cause of the issue. More info: https://woocommerce.com/document/how-to-test-for-conflicts/
I hope that helps! Let me know once you have done a conflict test!
Thanks for your reply @shameemreza
I’ve cleared the browser cache, but unfortunately it didn’t make a difference. I’ve also disabled most plugins (I don’t have that many, and nothing product/picture related besides my caching plugin) and it also didn’t change it.
It keeps on reverting to the old image even though that file doesn’t exist anymore, anywhere. Now we also know it’s not in my browser cache. I’ve opened it on a device where I haven’t had it open before, and exactly the same happens there.
Unfortunately renaming is not an option, as all product images (item ID and color combinations) are calculated automatically by my software. When I reupload my inventory at some point, the wrong image will again be back.. and since I have so many products, I will not find out until people buy the items..
Hello 👋 @teuptworkshop,
Thanks for sharing further details on this.
It is possible the issue might be with the image cache on your host’s server and not your browser.
Could you please check with your host if they’re using any server side caching? If they do, please request them to clear it for you and check your site for any difference.
Let us know how it goes.
Thanks for the suggestion! I just checked with my hosting provider but unfortunately no, they don’t have caching of any sort.
With no host-side caching, my caching plug-in switched off, and no browser cache, I’m really clueless as to why this picture keeps resurfacing even when the old file is definitely deleted. It’s not a huge deal since we’re talking about some 5 small products out of 10000+ in my store, so I don’t mind to remove them from the inventory (to prevent future accidental reuploads) and move on. But if this is some kind of WordPress bug, I hope it can be fixed…
Hi @teuptworkshop,
This is a common issue with WordPress, not much WooCommerce related but overall WP and cache (lots of cases reported). Do you use any CDN by any chance? Do you use Jetpack?
If the issue is with just 5 products, you could re-upload the images with new names, too as a workaround, yeah. No need to remove the products from your inventory entirely! 🙂
Please keep us posted.
-OP
Hi there 👋 ,
We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.
All the best,
Omar