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!

Share and Enjoy:
  • email
  • HelloTxt
  • Digg
  • StumbleUpon
  • del.icio.us
  • Sphinn
  • Technorati
  • Facebook
  • Netvibes
  • Mixx
  • Google Bookmarks
  • DZone
  • Fleck
  • LinkedIn
  • Slashdot
  • eKudos
  • MSN Reporter
  • NewsVine
  • PDF
  • RSS
  • blogmarks
  • Blogosphere News
  • Netvouz
  • Ping.fm
  • Reddit
  • SphereIt
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz