• Resolved T9S

    (@hippow)


    Hello,

    This is a continuation of this topic : https://wordpress.org/support/topic/impossible-to-find-all-images/

    To sum up :
    I hired a freelance who did a mistake with WPML.
    He duplicated all my content 2 times.
    I need to delete all the duplicated pictures.

    But when I delete an image through WordPress, it is not completely deleted. Indeed, I can still see the image on through the FTP.

    So, when I delete an image with a certain name and that I add a new image with the same name, it ads “-1” at the end of the name like WordPress still see that a previous image with the same name is still here.

    Here a video explaining better the problem : https://www.loom.com/share/23feaee17d094eaeab428f4c58778eb5

    What I already tried :
    – deactivate all the plugins except WP Rocket to be able to clear the cache, WP staging Pro to work on a staging site and Woocommerce
    – I also tried with WP Rocket deactivated
    – I clear all the transients
    – I do not have Jetpack

    But images I deleted are still there.

    Please could you help me fix that ?

    • This topic was modified 3 years, 10 months ago by T9S.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @hippow

    Thanks for summing up. Very helpful.

    You mentioned you are using WP staging Pro to work on a staging site and WooCommerce. …
    But images you deleted are still there.

    At this point can I have you double check whether the cache was cleared from the live site and the images can still be seen on the staging site OR vice-versa?

    We’ll look forward to your response.

    Also, it will be very helpful to have a latest copy of your site’s System Status here on this thread. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, please paste it here in your response.

    Thread Starter T9S

    (@hippow)

    Hello,

    I just tried to do the same process on the live site and the result is the same unfortunately.

    You can find the system report here : https://pastebin.com/gYrJFW5v

    Thanks

    Hello,
    Sorry to hear about the issue is still present, and thanks for sending the system report.

    I understand this is the continuation of the previous thread you did, can you share a copy of any new fatal error log that is under WooCommerce > System Status > Logs (if any). That will help to get a better idea of the issue.

    Thanks.

    Thread Starter T9S

    (@hippow)

    Hello,

    Yes I have some Fatal errors.
    I have put them here : https://pastebin.com/SpYjZutb

    Thanks

    Hi @hippow

    Thanks for sharing the error logs. Can you please disable all the custom coding that has been added into the site? You can do this on the staging platform.

    If that doesn’t make a difference either, can you please check with your hosting provider to see if any server side caching is enabled? If so, please have them disable it.

    Let us know how it goes.

    Thread Starter T9S

    (@hippow)

    Hello,

    I deleted all the custsom coding in the function.php but it doesn’t change anything.

    And there is no server side caching, only WP Rocket as a plugin.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @hippow

    For reference, all of the images n a WordPress installation are controlled by the Media Library section of the WordPress core software. Plugins for WordPress like WooCommerce simply integrate with that using standard WordPress developer functions.

    There are several approaches within this Google Search which may help you clean up your images stored and referenced from within the WordPress Media Library.

    https://www.google.com/search?q=WooCommerce+delete+duplicate+images

    If you’ve already deleted the duplicate images from your WordPress installations Media Library but those unwanted images are still present when looking via FTP. You’d then need to delete any images you did not wish to be present on your web server using FTP.

    I hope this helps.

    Thread Starter T9S

    (@hippow)

    Hello,

    Okay thanks but if the image does not appear in WordPress, does it mean that it has been deleted from the database ?

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @hippow

    The data for attachments from the WordPress Media Library is stored within the wp_postmeta in the _wp_attachment_metadata and _wp_attached_file field.


    **Image Link:** https://snipboard.io/o2ULZg.jpg

    There would also be some data within wp_posts too.

    I hope this helps.

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.

    If you have any other questions, please feel free to open a new topic.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Impossible to delete images’ is closed to new replies.