Support » Fixing WordPress » Pictures uploaded but not appearing in my Media Library

  • Resolved klpadilla

    (@klpadilla)


    Hi everyone!

    I have uploaded a few pictures into my Media Library and some of the important ones are not showing an image. I can click on the link, but gray space is only visible. This happened recently. You can see my logo and profile picture are no longer existent. Where did my images go and how can I get them back? Will this be an on-going issue?

    Thank you!

    Sincerely,
    Krystle

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    Moderator Steve Stern

    (@sterndata)

    Guardian of the Interwebs

    A gray image usually means some of the post-processing that produces the various image sizes has failed. Were these particularly large images?

    Try one of the “rebuild thumbnail” plugins to force a rebuild for them.

    https://wordpress.org/plugins/ajax-thumbnail-rebuild/

    This image
    http://homesbypadilla.com/wp-content/uploads/2017/11/Homes_by_Padilla04-1.jpg

    is returning a 404. I just checked that folder and it’s not there:

    http://homesbypadilla.com/wp-content/uploads/2017/11/

    (You really should deny access to the uploads folder, btw.)

    A couple of possibilities:

    1) You’ve been hacked.
    2) Another user came in via ftp or ssh and moved things around.
    3) Your host did something, like migrate you to a new server, and a few files got lost.

    My brain is about to explode.

    @kjodle I’m going to explore this possibility first. My host recently performed a backup restoration to my files, but the dates of the event weren’t close to these pictures recently disappearing. Is there a way these images could have been lost in the restoration.
    Also, you mentioned that I should deny access to the uploads folder, where do I do this?

    Is there a way these images could have been lost in the restoration.

    Oh yeah, it happens, well not all the time, but a lot. Servers aren’t perfect. This is why I always recommend backups, on a regular basis.

    You might want to check your server error logs to see if there were any errors at that level. Sometimes computers hiccup.

    I should deny access to the uploads folder, where do I do this?

    Edit your .htacces file and add

    
    Options -Indexes
    

    This will prevent people being able to browser through directories that don’t have an index file.

    Ok, so I went through each suggestion one by one and I’m still no where.

    @t-p I tried the permissions, changed them and it didn’t work. Then I used the plug-in @sterndata suggested and still nothing.

    @kjodle I checked the files on the server and all of the images are there. I even contacted support to double check and they said nothing was lost or moved.

    Something I noticed yesterday: My husband checked his laptop and all of the images were there, we have the same laptop. On my computer and on my phone they’re missing.

    My husband checked his laptop and all of the images were there, we have the same laptop.

    It’s probably pulling them out of the cache.

    I checked the files on the server and all of the images are there. I even contacted support to double check and they said nothing was lost or moved.

    That’s odd, because if I go to your homepage and check the Console, I get two errors:

    
    Homes_by_Padilla04-1.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
    profile_1.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
    

    If you can ftp or ssh to your site and see these two files

    http://homesbypadilla.com/wp-content/uploads/2017/11/Homes_by_Padilla04-1.jpg

    http://homesbypadilla.com/wp-content/uploads/2017/11/profile_1.jpg

    then for some reason WordPress can’t see them. Check the file permissions on them.

    It’s possible their database entries got lost, but I’m not sure what that would look like on the front end. Do you have a recent backup of your database?

    @kjodle I got it to work, but I’m still confused. I contacted tech support with my host and they just told me to upload the images again which I did and it worked. I just don’t think it solved the main problem which I still have no idea what it was and I don’t want this to happen again. Tech support said there was probably a problem with the files to begin with. Ugh.

    This is definitely weird, and I have no good explanation for what’s going on here. When you say you “checked the files on the server”, how did you do that exactly?

    It’s odd—the original two links I posted are still returning a 404. That’s why I ask. If I change to the December directory, they are there. It’s definitely a weird situation.

    Nevertheless, now is as good a time as any to learn how to back up and restore your site, to prevent issues like this happening again.

    Good idea, @kjodle thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.