• Hi!
    I’m wondering if someone could help me out with this issue I’m having because I just CAN’T figure out what’s happening ??

    /*Technical Context*/
    I created a subdomain (‘dev.xyz.com’) for testing on the hosting account and after I and the client was happy with everything, decided to move to the main domain replacing the old website. I took backups of everything and FTP’d into the server, downloaded all the files from the subdomain and uploaded everything into the Public_Html folder and changed the url in the configuration file.

    /*The Problem*/
    Lo and behold I wake up the next day to a very angry client because the top logo and main slider don’t even load! I go into the media library to try change the images and NONE of the new images I upload are read, it’s just a blank white square where the image thumbnail should’ve been. It took me a while to understand what the client was saying because I was viewing a cached version of the page where everything was working. I tried everything from changing permissions to uploading directly to the Wp-Uploads server and having a plugin read it but nothing works. At this point the file uploads issue isn’t even one of my main concerns but having the site load fully is all I could care about. Tried EVERYTHING, NOTHING works. The weird part is all the rest of the images load fine but just the slider and the logo won’t load.

    How it Looks: https://ibb.co/RpcYHVB
    How it should Look: https://ibb.co/yWq0fNB

    I will be eternally grateful to anyone who could help me solve this quickly, thank you very much!

    Tl;dr: Moved site from subdomain to main and a few of the images won’t load and the upload to media library won’t work, please help!

    • This topic was modified 4 years, 1 month ago by ad1av.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Changing the URL in the configuration file doesn’t do everything. WordPress has hard-coded URL’s built in pretty much everywhere (a legacy of it’s very much old-time roots).

    You need to update everything in the database as well. The correct way to do this is one of the good search and replace plugins (my recommendation here) as they will take care of all of the serialised values that a standard search and replace won’t.

    Thread Starter ad1av

    (@ad1av)

    Hey @catacaustic !
    Thank you so very much for your quick reply!
    Awesome, I’m going to do this now.
    But will this help solve the image not loading issue that’s my main concern?
    Thanks again!

    Check what URL the images are meant to be loading from by using your browser inspector. There’s a very good chance that they are still trying to load from the old sub-domain that you used instead of the new domain. That’s by far the most common problem that I’ve seen with this.

    If the images URLs are from your actual new domain, then that means that the images weren’t copied across properly, and will need to be moved across before they can be viewed.

    Thread Starter ad1av

    (@ad1av)

    Hey @catacaustic

    You were right!
    https://dev.ekomovershouston.com/wp-content/uploads/2020/12/movers-1.png” is the link to the image not loading!

    I can’t thank you enough, made my day!
    *proceeds to thank you anyway*
    Haha, thanks!

    ??

    That’s the wisdom that comes from me doing exactly the same thing way to many times in the past.

    Thread Starter ad1av

    (@ad1av)

    Thanks for allowing me access to your wisdom, haha. Everything loads perfectly!

    Small question though @catacaustic, The blank images while uploading anything new issue still hasn’t resolved. Ya know of any way I could fix that? Tried everything I could find on the web from changing permissions in my hosting to uploading to the server itself and having wordpress read it using the Server to wordpress plugin, I believe it was called. Nothing works.

    Thanks alot again!
    (Forever indebted to your wisdom ?? )

    Do the images actually get uploaded to your server in the right place? If they do it’s more of a server issue (most liekly). If not, I’d do the standard debugging process of disableing all (yes ALL) plugins and switching to a default Twenty * theme and seeing if the problem resolves, then swiching things back on one by one until you find what’s causing the problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress Images NOT LOADING’ is closed to new replies.