pradeep
pradeep

Reputation: 330

Images not showing on Wordpress website after migrating to hosting provider

I recently migrated my website to a hosting provider from localhost and some of the "Featured Images" on the some pages are not showing up. I went to the Chrome Console on the computer that was having this problem and saw this error:enter image description here

Screenshots

I see that Wordpress is trying to load the image from Localhost instead of the website. My siteurl and home options are set correctly. I have already tried deleting all the plugins but that didn't help. I also tried recreating the page on the server itself and it did not help. Can you please help?

Edit: I do see the images in the Media Library, but don't see them on the page when it loads.

Upvotes: 0

Views: 1449

Answers (2)

pol_grapes
pol_grapes

Reputation: 1

Upload a new site to hosting, after local development, as follows:

  1. Copy the site folder from the local server to another location.
  2. Export the Database to the copied folder with the site.
  3. Using the editor (the normal editor should have a search-replacement), replace all occurrences of 'localhost/your_folder' on the site and in the database on 'yoursite.com'
  4. Upload the site and the database to the server, respectively.

Upvotes: 0

Danil Rusakov
Danil Rusakov

Reputation: 76

Try to move your db with plugin WP Migrate DB

Upvotes: 1

Related Questions