Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

ALINA ZAMOGILNYKH
ALINA ZAMOGILNYKH
16,664 Points

After migrating to live server none of my pages/settings/adjustments are appearing, just blank new WP site

I developed the whole web site at local server. Then tried to migrate it to live server. I did every step from the video (two attempts from 1st step to the last one!), made all necessary changes in wp-config file, in wp-options, but when I go to my site url it doesn't show me my web site but offers me to install Wordpress and after that I get to blank new WP site, none of my previous changes are appearing, there aren't any of my pages, my styles, nothing, just default posts and settings, plugins are installed but deactivated.

When I run Search and Replace plugin it says "Sorry, http://localhost/mylocalsite.com is not found in this database(my database)!"

I have no idea why it happens and what to do now, please enlighten me!

1 Answer

Colin Marshall
Colin Marshall
32,861 Points

Sounds like the database was not connected properly in wp-config.php. When you reinstalled it, it might have wrote over the database you imported from the local server, so you should probably delete the database on the live server and reimport it.

Did you change database info in wp-config.php to match the database server of your live server? Who do you host with? This info will vary depending on your host.

ALINA ZAMOGILNYKH
ALINA ZAMOGILNYKH
16,664 Points

It seems like all the configurations changes were right (at least I made everything as was said in the video).

That's how I solved it finally - I just use All-in-One WP Migration plugin. After making all adjustments and settings from the video (at this point my site is just clean and without my files and pages / weird thing though: it even showed my front-page picture but with default post). And after that I exported-imported the stuff via this plugin and everything is up and running now (except for 2 pictures that are broken, even though every other picture is fine - why the hell that happens?!).

And thanks for answering me anyway.