Okay
  Public Ticket #2602371
Migrating Website - Images Not Showing
Closed

Comments

  •  2
    Jake started the conversation

    I migrated my website to a new domain and modified the wordpress database to search and replace any old domain name references, but I still can't get the images on the website to load on the new domain. It appears as though the broken images are pointing to the right place, but they won't load. 

  •  2
  •  8,849
    Tahir replied

    Hey Again,

    Could be a File Folder Permission issue: https://www.wpbeginner.com/wp-tutorials/how-to-fix-image-upload-issue-in-wordpress/ . 

    Thanks


    ThemeNectar Support Team 

  •  2
    Jake replied

    Hi Tahir,

    I tried setting permissions per the link you sent, but that didn't fix it either. 

  •  8,849
    Tahir replied

    Please contact your hosting provider so they can fix this for you.

    Thanks 


    ThemeNectar Support Team 

  •  19
    Brian replied

    Can all images be found at: ''https://www.gsarchitects.net/wordpress/wp-content/uploads/2015/11/IMAGE.EXT''?

    The URL is different, I don't know if that is anything that you already checked?

  •  19
    Brian replied

    Otherwise try using this SQL code:

    UPDATE wp_options SET option_value = replace(option_value, 'OLDURL', 'NEWURL') WHERE option_name = 'home' OR option_name = 'siteurl';

    UPDATE wp_posts SET guid = replace(guid, 'OLDURL','NEWURL');

    UPDATE wp_posts SET post_content = replace(post_content, 'OLDURL', 'NEWURL');

    UPDATE wp_postmeta SET meta_value = replace(meta_value,'OLDURL','NEWURL');


  •  2
    Jake replied

    Tahir - I’ve already contacted GoDaddy and they couldn’t figure it out and assumed it was something within the theme. 


    Brian - We did the search and replace via SQL as you mentioned and still have issues. The images can be found in the uploads folder in the new gswarchitects.net domain. Were you seeing references to the old domain of gsarchitects.net? There’s only one letter difference between domains. 

  •  19
    Brian replied

    Some image URL's are: gsarchitects.net.
    For example the images on the contact page (https://www.gsarchitects.net/wordpress/wp-content/uploads/2015/11/Zillow.ext). .png instead of .ext ofcourse. ;)

    The logo however seems to forward to the new domain (gswarchitects.net), so for some reason that doesn't work.
    The error in the console is 404, might be a typo? Wrong folder? What if you upload the same image again? Can the image then be found?

  •  2
    Jake replied

    No luck in reloading the images via FTP. I tried the logo, and that one didn't work. 

  •  2
    Jake replied

    Would you like login info to check things out? I've researched and tried a lot of things to no avail! 

  •  2
    Jake replied

    Oh, and I found out that those images on the Contact page had hard coded sources, so I fixed the url and nothing changed.

  •  2
    Jake replied

    Figured it out! I renamed the .htacess file in the main root of my wordpress site and switched the permalinks style in the settings of the wordpress and that fixed it. 

  •  8,849
    Tahir replied

    Glad you got it sorted.

    Best 


    ThemeNectar Support Team