Patch for wp2drupal for Drupal 6

Tags: 

I'm trying to migrate one of my personal sites from Wordpress to Drupal and needed a way to migrate the existing data. Well, it turned out to be a little tricky as I'm using Drupal 6 while the only really useful converter, wp2drupal, was written for Drupal 5. Luckily someone converted wp2drupal to D6, so away I went.

Unfortunately I wasn't able to get far, it turned out that there was a problem in the D6 port which causes an "Access Denied" error when you actually submit the form to begin the conversion. Not to be undone, I started poking around the script and discovered that the menu configuration was using an older format than what the current Drupal release (v6.4) required. A few quick lines later and I was able to get it working again.

In the interests of helping the community I've compiled the changes into a patch file:

There are still a bunch of syntax errors that will show up after the data has converted, but at least it will actually convert the data over. Also, I made some minor tweaks to the code according to the Drupal development guidelines based on what the coder module recommended. Lastly, be warned that the patch was created using git, so it may be easier to just add the few missing "access" lines manually.

3 Comments

Thanks so much for putting

Thanks so much for putting together this patch! Aside from some weirdness with images becoming posts, the import script worked perfectly for importing from a Wordpress 2.6 site.

Hey, Thanks for the help. Can

Hey,

Thanks for the help. Can you recommended a good crash course of laying out the drupal site with word press. I have it working and can't seem to figure out how to work it.

Thanks,