Encountered a problem while moving a WordPress to a new host for a client. Although all files were copied correctly, we kept getting the error “Fatal error: Call to undefined function wp() in ….” –  After much web searching, it turned out to be a simple fix.

All you need to do is add the following to your wp-config.php file in the root folder of your WordPress installation:

define('WP_SITEURL', 'http://tomdoyletalk.com/your-blog-dir');
define('WP_HOME', 'http://tomdoyletalk.com/your-blog-dir');

Hopefully this helps someone else out who is having the same issue!

Be Sociable, Share!