WordPress.org

Forums

[resolved] WordPress 3.9 seems to have removed ALL my images (22 posts)

  1. MumPages
    Member
    Posted 11 months ago #

    After upgrading, almost every single photo I had uploaded is gone. In the Media Library, WP recognises there WERE photos there but not one image displays, which for a photography blog is absolutely disastrous. Cant say Im too happy. Does anyone know how to fix this?

  2. MumPages
    Member
    Posted 11 months ago #

    I have checked the via FTP, and most of the photos are completely gone from the server. Some remain, but there are entire directories that seem to be a) deleted or b) cleared of contents.

    F$#&ing angry about this, not happy at all. Thank god I tested the 'upgrade' on my own blog before unleashing it on a site I have with hundreds of paying customers. Not good enough WP.

  3. MumPages
    Member
    Posted 11 months ago #

    ...am I the only one to get this issue..?

    It appears part of the problem is that WP has added bits to the links to photos effectively breaking the links. WTF.

  4. What folder were these in? WordPress upgrades lack the ability to delete wp-content/uploads (no, I'm serious about this).

  5. BevTheBoomer
    Member
    Posted 11 months ago #

    I also have this issue. It's been 10-days to 2 weeks since I last worked on my blog (www.bevtheboomer.com). Last night I found all but 1 photo gone from my media library--that's over 100 photos missing. I looked at the blog posts that should have had photos. Where a photo should have been I found a rectangular box with the name of the photo in it. My site is hosted on GoDaddy, and I called their tech support. The technician found my photos using the FTP history, and I think I've restored them to the current FTP folders. The photos now show on my blog, but they are still missing from my media library. I'm using the 2011 theme, and I have 3 other WP blogs where the media libraries are fine.

    To sum it up, some time between April 3 and last night, all but 1 photo from my media library were deleted from the FTP folders. I have restored the photos to the FTP folders, and they now show up in my blog posts, but they are still missing from my media library.

    I know just enough about coding to be dangerous, so I keep things as vanilla as I can with my 4 blog sites. Any help would be greatly appreciated.

  6. MumPages
    Member
    Posted 11 months ago #

    What folder were these in? WordPress upgrades lack the ability to delete wp-content/uploads (no, I'm serious about this).

    Yes - thats where they were - spot on. I'm about to start troubleshooting again now, but it appears that some of the links have gone from (for example) /uploads/2014/04 to uploads/2014/4/2014/4 where its added an additional path to the image. I can see that I can manually go through and fix at least some of the issues... but what a serious PITA. Never had issues upgrading to new versions of WP before, but this was a fairly major change.

    If you know how to resolve this it would be extremely helpful :-)

  7. MumPages
    Member
    Posted 11 months ago #

    BevTheBoomer - sounds like the exact issue I had. Media library showing nothing but errors/blank images

  8. MumPages
    Member
    Posted 11 months ago #

    OK to clarify, and after looking at the issue again - WP, since the update, has inserted what appears to be the year/month before images. IE mysite.com/uploads/2014/4/2014/3/image.jpg.

    The images are still there in the same folder they always were in.

    There must be a way to remove this prefix from all the links. Once done the site will revert to the way it was prior to the 3.9 update.

    Can anyone advise how to do this?

    [Please don't bump]

  9. MumPages
    Member
    Posted 11 months ago #

    Well as an FYI to anyone who either stumbles across this via a Google search or here, I have a work around. Using your backup, copy via FTP every photo back into the directory WP thinks the photos are in.

    IMO, this is an issue re settings/media where there is an option to save media under year/month.

    I deselected this option on another site I have, and upgraded it to WP 3.9. Deselecting/upgrading/reselecting this option prevented the issue from occurring.

    Hope that helps someone in the future. And I am just very disappointed in the WP team that they failed to either answer my post or to properly test the new version.

  10. MumPages
    Member
    Posted 11 months ago #

    Issue resolved/fixed

  11. This part is very true.

    What folder were these in? WordPress upgrades lack the ability to delete wp-content/uploads (no, I'm serious about this).

    OK to clarify, and after looking at the issue again - WP, since the update, has inserted what appears to be the year/month before images. IE mysite.com/uploads/2014/4/2014/3/image.jpg.

    Can you provide a link to a site that illustrates this? I know you've had this problem but the upgrade couldn't have caused this. I'd like to see the effected site and look at the image URLs.

  12. BevTheBoomer
    Member
    Posted 11 months ago #

    MumPages - For the site that was affected, do your images now show in your media library?

  13. MumPages
    Member
    Posted 11 months ago #

    Here is an example of this, these are from the one page. Note that it only affected Featured Images and Galleries mainly. Here is one from the gallery with the modified URL, note the double slash too... I have NFI on that to be honest:
    http://bellsabroad.com/st-peters-pool/

    http://bellsabroad.com//wp-content/uploads/2014/04/2013/10/St-Peters-Pool-057.jpg

    Here is one from the same page that was not in the gallery but was unaffected:
    http://bellsabroad.com/wp-content/uploads/2013/10/St-Peters-Pool-046.jpg

    More affected links:
    http://bellsabroad.com//wp-content/uploads/2014/04/2014/03/Oxford-047.jpg
    http://bellsabroad.com//wp-content/uploads/2014/04/2014/03/Oxford-032.jpg

    The issue occurred on every page that had a gallery.

    I realise that WP won't delete images in the upload folder, I figured that out fairly quickly :-)

    However, this issue happened immediately after I upgraded WP, and there were no issues whatsoever before this. I had deactivated every plugin also (after) to see if that helped.

  14. MumPages
    Member
    Posted 11 months ago #

    MumPages - For the site that was affected, do your images now show in your media library?

    They show now. I copied every image (I couldnt be bothered only moving the affected images) into the /2014/04 folder. Now they all show up in the Media Library. I used simple logic - if I couldnt fix the URL I would put the pictures where the URL was pointing :-)

  15. BevTheBoomer
    Member
    Posted 11 months ago #

    Jan Dembowski - During the first week of April, I uploaded numerous photos to this group of posts: http://bevtheboomer.com/category/myflatpet/. As I described in my previous post on this thread, I found the photos MIA. They had been deleted from the FTP folders--I agree, it seems unlikely that the update would do this. I recovered the photos and the blog posts now look right. What's making me nuts is that the photos do not show up in my media library. I'm also missing the photo I was using for my header.

  16. MumPages
    Member
    Posted 11 months ago #

    BevTheBoomer - do you use a Gallery plug in???

  17. BevTheBoomer
    Member
    Posted 11 months ago #

    MumPages -- LOL! You give me far too much credit! No Gallery plug in. Just the media library that came with WordPress.

  18. Bev, you have a different issue, since Mum's was that somehow the URL for the images was goobered (which I would put dollar down on a weird permalink issue from a plugin...)

    I will stress this again: WordPress core doesn't know how to delete wp-content/uploads.

    I wrote this in 2011, it's still valid: http://halfelf.org/2011/how-the-wordpress-upgrade-works/

    WP can ONLY delete what it's told. We're not that reckless :)

  19. BevTheBoomer
    Member
    Posted 11 months ago #

    I will stress this again: WordPress core doesn't know how to delete wp-content/uploads.

    I wrote this in 2011, it's still valid: http://halfelf.org/2011/how-the-wordpress-upgrade-works/

    OK, whatever.

    Regardless of whether WP deletes or not, the photos I uploaded at the beginning of the month no longer show up in my media library--though they exist in the FTP folders and they show up on my blog.

    I've been on WordPress for 5 very happy years. This is the first time I've ever had to seek help. Thanks to MumPages for at least giving me some validation and direction.

    I'm outta here--unless anyone else has a bright idea on how to restore the connection between the FTP folders and the media library.

  20. Dave Naylor
    Member
    Posted 11 months ago #

    You may have corrupted meta data. I created a small plugin that will rebuild your image meta data. Download it here on GitHub.

    Upload, activate, run and then rebuild your thumbnails with something like the Force Regenerate Thumbnails plugin.

  21. rebeccadearden
    Member
    Posted 11 months ago #

    This morning, thumbnails showed for the 50+ posts on my site, but all the posts had the blank boxes with the name of the photo that should be there. I went through them one by one (500 pictures) and used the Replace button, which restored the original pictures. A terrible chore, but it worked.

    I've now, though, accidentally found what the issue was. The URLs for the photos had suddenly lost the / (slash) that should have been in wordpress(/)wpcontent.

    I'd like to know how this disappeared (upgraded to 3.9?) and whether there was a simpler way to go back and restore all the missing slashes to repair the URLs.

    Hate this sort of confidence-knocking thing. It happened to me even worse on the last upgrade. That time, I had to actually re-upload every photo.

  22. richlondon
    Member
    Posted 11 months ago #

    Hi
    I have tried to upgrade a multisite install, running on iis. The wordpress install is on 3.5.1, and I have tried to upgrade to 3.9.

    I have exeperienced the missing images issue.
    On the media library screen, none if the images have thumbnails. Looking at the source of the image it is missing the "wp-content/blogs.dir/SITEID". Looking on the server, the files are there.

    When I look at the site settings in the network admin, the upload paths seem correct.
    I have since had to revert to a snapshot of the 3.5.1, as I couldn't resolve the media issues.

    Help appreciated..
    Thanks

Reply

You must log in to post.

About this Topic