berserk.org

berserk.org header image

Upgrading from Wordpress 1.5.1.3 to Wordpress 2.1

February 2nd, 2007 · 4 Comments

So I recently decided to upgrade to Wordpress 2.1 (was running Wordpress 1.5.1.3). I was able to do it rather painlessly, so I figured I’d share just in case others wanted to know.

1. Go grab the Wordpress XML Export . Follow the instructions to put wp-xmlmigrate.php into your wp-content/plugins/ directory

2. Open up wp-xmlmigrate.php and head to line 196 or so to the export_cat_list() method


$cats = $wpdb->get_results("SELECT cat_ID, cat_name, category_nicename, category_description, category_parent, 14 as category_count
FROM $wpdb->categories
WHERE cat_ID > 0
ORDER BY cat_name");

See that bit above ‘14 as category_count’ ? Change that 14 to the number of categories you have in your 1.5.1.3 blog and put that number there.

3. From Manage -> WP Export select the categories you want to export, then click the ‘Download export file’ button.

4. In your 2.1 blog under Manage -> Import , select wordpress then browse for the xml file you created in step 3.

Tada. You’re done.

Tags: technology · code

4 responses so far ↓

  • 1 Eddie O'Shan // Aug 31, 2007 at 2:44 pm

    Many thanks for the post. It took me five minutes instead of a couple of hours debugging.

  • 2 Back again! « My Weblog // Sep 18, 2007 at 11:26 am

    […] the admin password. I found a plugin to export my data into a Wordpress XML file and a helpful tip how to get it working with Wordpress 1.5, too. So the actual part of transferring the entries was a matter of seconds. And we’re live […]

  • 3 Karsten // Sep 18, 2007 at 11:40 am

    Hi! Thanks to you I managed to move my old Wordpress 1.5 weblog without the need to do much debugging on my own. Great! Just some feedback: You have a F1ROM in there which should be a FROM. And the quotation marks that Wordpress leaves are not copy-and-paste friendly, one will have to replace them with PHP-style quotation marks by hand. Maybe you should put the whole section into code tags.

  • 4 Matthew’s Weblog » Blog Archive » Upgrading WP // Oct 11, 2007 at 3:30 pm

    […] to do was get my 1.5.x blogs exported.  Eevn that has now been covered, and I was able to use a very brief set of steps in this tutorial and now I’m moved […]

Leave a Comment