Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#55534 new defect (bug)

Remaining image files after deleting them

Reported by: hoseinkh's profile hoseinkh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 5.9.2
Component: General Keywords:
Focuses: performance Cc:

Description

hi wordpress team!

I had a very strange problem yesterday that I did not even think about ...

As you know, after uploading images in WordPress, WordPress automatically creates several different sizes of it. For example, I uploaded over 200 product images to WooCommerce ... (on an unofficial site) After a long time, yesterday I decided to remove all products and their photos from within the WordPress media section And I did. But after looking at the hosts and the uploads folder, I was surprised to see that all the images still remained in the upload folder. In fact, in addition to the image uploaded in WordPress (WooCommerce products), there were 4 different sizes of each image in the upload folder.
I was really surprised by this ...
I tested this on several different websites and even my colleagues confirmed it. Please address this issue if possible. It is very, very important. thank you!

Change History (2)

#1 @mitogh
3 years ago

Hey @hoseinkh thanks for your bug report, would you mind adding a step to replicate your problem and providing with theme/plugins that are active when this problem is happening, that would be really useful to narrow down the problem you are facing, so we can find a solution for your problem.

You can share most of these details by going into:

  • wp-admin/site-health.php?tab=debug

Or Tools > Site Health > Info

Thanks

#2 @hoseinkh
3 years ago

hi again @mitogh
I re-examined this problem in more detail and everything is working fine. But maybe I know exactly why I experienced this bug. I will explain it in the following ...

I had a store website with 100 products. With the duplicator plugin, I took the installation package and transferred it to the new host and domain. Then on the new website, I removed the products that were on the previous website (I also removed all the product images from the WordPress media section)
When I deleted images from the previous website on the new website, the product image file remained in the uploads folder.

I think the reason for this bug is that I uploaded the images to another domain, on the other hand I deleted those images to another domain. I hope this topic is effective in finding bug.

thank you

Note: See TracTickets for help on using tickets.