Thread Starter
Stefan
(@zahnd)
I just figured out that the issue is caused by WooCommerce and not Image Regenerate & Crop. Sorry for the inconvenience.
Hi Stefan,
No worries, I am glad you found the issue on your own and that you shared this with me. Thank you!
Have a nice day!
Iulia
Thread Starter
Stefan
(@zahnd)
Hi Lulia
I have to come back to this issue since there seems to be some conflict with WooCommerce, Shortpixel and Regenerate Image & Crop. I’m not sure what the problem is but if I try to optimize (shortpixel) an image which has no thumbnail for the sizes “woocommerce_gallery_thumbnail” or “shop_thumbnail” (they belong somehow together), all thumbnails are going to be deleted. More precisely, only the information that those thumbnails exist seems to be removed from the database. The image on the disk is still present.
When I disable the Image Regenerate & Crop plugin and optimize the image again. This issue doesn’t arise. The interesting thing is that after optimizing the image with disabled Image Regeneration & Crop plugin, the two thumbnail sizes mentioned above are going to be created automatically. Don’t know if this plays a role.
I created a video showing the following:
1. Optimizing an image with both sizes mentioned above is successful
2. Optimizing an image with none of the mentioned sizes above fails
3. After the unsuccessful optimization, the image sizes still exist on the disk and are accessible through the web
4. Image optimization with disabled Image Regenerate & Crop plugin is successful but the mentioned sizes above are going to be created automatically
Please find the video here: https://www.dropbox.com/s/or5vau8gujflwem/image-regenerate-crop-shortpixel-issue.mp4?dl=0
Do you have any idea what the issue could be?
Thank you so much in advance and best wishes, Stefan
Hi Stefan,
I reviewed the video. My plugin always looks in the database at the content of the metadata, and that happens at the moment you open to see details of the image in the lightbox, or when you make any changes to the image through my plugin.
What I saw in the video is that at 2.40 you check through my plugin the status of the images, which indicated the files exist and the metadata is correct in the database. Then, at 3.17 you initiate changes through ShortPixel plugin, and then you went back to my plugin (btw, no need to refresh the page to see details in the image details lightbox) at 3.57 and show that the images are not correct.
My conclusion is that, during the processing of images that ShortPixel applies, the metadata in the database is not written correctly or some other error occurs. Perhaps you could check in the database the metadata after each action you perform, and see at what point the metadata gets broken.
Let me know if this helps.
Have a nice day,
Iulia
Thread Starter
Stefan
(@zahnd)
Hi Lulia
Thank you very much for taking the time to watch the video and give me feedback. Meanwhile, I removed WooCommerce and switched to Easy Digital Downloads. After removing WooCommerce, everything works fine again. It seems to me that there must be some sort of incompatibility between some or all of the three plugins. As debugging will be difficult and WooCommerce didn’t suit my needs (at least in the way I wanted it), I made the switch. Therefore, everything’s okay for me now :).
Again, thank you for your time and sorry for any inconvenience caused.
Best wishes, Stefan