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

PHP How to Build a WordPress Theme Launching a WordPress Site How to Migrate a Local WordPress Site to Live Server

Don Shipley
Don Shipley
19,488 Points

Migrate a Local WordPress Site to Live Server

I followed all on the video. The template is on my live server yet no pages show. The database is in place and all files have been uploaded correctly. Using a sub directory inside of the url. Went into PhpMyAdmin made sure the wppoptions inside the database site url is correct. Does the database store the location of the pages built store the location inside the database? All pages have been uploaded in wpcontent-themes folder. Wordpress does not show the pages even after I activated the theme

What am I doing wrong?

Being working on it I see the database created to tables one with lowercase wp_wpp and one uppercase wp_WPP. If I change the wp_config to read the $table_prefix = 'wp_wpp'; the site display as it should minus the images.. Yet the admin area goes blank. If I change If I change the $table_prefix = 'wp_WPP; The site does not display correctly and no pages show in the admin area.

2 Answers

Clinton Hopgood
Clinton Hopgood
7,825 Points

Did you edit wp-config.php so that it points to the correct database using the new credentials etc.

http://codex.wordpress.org/Editing_wp-config.php

Don Shipley
Don Shipley
19,488 Points

Yes Thank you. I use SiteGround as my server so need to place the main user prior to the database name. Example if the user the gave me is user25 I need to write define('DB_NAME', 'user25_wp_portfolio'); in the wp-config file

I tried every answer but all were wrong. -wp-admin wp- content wp-themes wp-includes