In order to remedy this I had to do the following:
- make a backup of the new Wordpress sub-site
- create a new properly-working copy in the new location
- merge the two copies into a proper replacement site
- confirm that I could update and configure everything properly
MY FIRST UNSUCCESSFUL ATTEMPT
I initially tried installing an up-to-date copy of Wordpress as a new install, and confirmed that it worked properly by installing all the same plugins and theme as before. I also restored the ‘wp-content’ files from my original site. I then used the Tools > Import function to restore the “WXR” (.XML) file I’d exported from the original site. Unfortunately, this only restored the Pages but none of the theme or widget settings. As a last attempt I dumped the new site's MySQL database and restored it from a tweaked copy of the original DB (where I’d done a search-and-replace for all the URLs). For whatever reason this caused the whole setup to reset to defaults. Fail.
HOW I SUCCEEDED
- Deleted all the files in the new location and started over.
- Copied all the install files from a matched version of WordPress (v3.0.1 downloaded from their Release Archive).
- Manually updated only the wp-config.php.
- Copied all the files from the old site. I had to rename the script-created folder, 'wordpress-content', to match the standard folder-name, 'wp-content'
- Used the phpMyAdmin technique to download the SQL DB from the initial site in uncompressed text format.
- Manually fixed all the URL and folder references using search-and-replace:
kobsd.org/wp >> kobsd.com
kobsd.org >> kobsd.com
wp/wordpress-content >> wp-content
wordpress-content >> wp-content - Went into phpMyAdmin on the new site, dumped all the tables and restored the edited SQL file.
- Finally, I tested the Wordpress auto-update as well as installing/configuring new plugins, and it all works properly!
No comments:
Post a Comment