I’m considering migrating this site from the superb open-source blogging platform WordPress to the superb open-source content-management system Drupal.

It turns out that isn’t nearly as simple as it sounds.

You would think it would be easy. To move the content, all you’re really doing is mapping the bits of WordPress’s database onto the corresponding bits of Drupal’s database.

There are a number of folks out there who say they have the answer. One of them comes close: Sam Revitch at Least Significant Bits has kindly released a script called WordPress Migration Utility. Update: See the comments below… it does more than come close. It worked.
The documentation is an issue, partly because the readme file is for a previous incarnation. It tells you to invoke a file called wp_goto_dr.php, which isn’t actually included in the installation. And it took a little poking around with settings to get it to actually run, but run it finally did, importing post after post with very few problems (an oddly-formatted headline here and there) — until it worked its way forward to March 24, 2004..

The script reported an error, “Duplicate entry ‘20040324’ for key 2”. I had a look, and couldn’t find any problems in the database. But every post from that point forward is stored as a comment to earlier posts. Not helpful.

Also not helpful: if you’ve used WordPress’s features to flag comment spam as such, those comments rise from the dead and show up hale and hearty in your posts, happily flogging poker and pharmaceuticals.

So the search continues. I’ll keep you posted — and I’ll also let you know if I can get Sam’s script working.

Mastodon