Port to 6.x
milliams - February 28, 2008 - 19:00
| Project: | Wordpress Import |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Is there any chance of a 6.x version of this?
Thankyou

#1
Yes, a port to Drupal 6 is planned. Unfortunately, I am currently very busy. I won't be able to work on this module until mid-march.
#2
That's good to hear. I'm very interested in a 6.x port as I want to convert my wordpress 2.2.x blog over to Drupal 6 fairly soon. As such, I'm willing to throw in some development effort. I'm wondering how much effort it will be. Can't tell that until after I look at the code...
#3
I would appreciate this port as well for the latest version of Wordpress (2.3.3). Either way, try to let me know if I can do anything to help, I don't have lot's of experience coding, I'm learning C# right now, but I use to design websites in PHP (mostly design, a little DB stuff).
Feel free to ask if I can do something, I may not be able to (lack of knowledge) but I will try/let you know.
#4
Didn't see this until I sent my message directly to the Developer. However, I am available to help port this module over to 6.x.
#5
http://www.denraf.be/content/wp2drupal-drupal-6-and-wordpress-23
I'll check this evening if there are things that match, cause in wordpress 2.3 there are a few changes in the database.
#6
wp2drupal and wordpress import are two different projects. The first one directly imports a blog from a Wordpresss database and the second one processes a file in WXR format exported by Wordpress. Wordpress import shouldn't suffer from modifications made to the Wordpress database structure because it uses one more layer of abstraction.
#7
Hi,
I've attached to my post the following files :
Note : it is just a dummy port. I did not try extensively the module but for my case it works.
#8
@ #7
I get:
warning: Invalid argument supplied for foreach() in /var/www/html/drupal/sites/all/modules/wordpress_import/wordpress_import.module on line 216.
The Wordpress blog has been successfully imported
but in fact, it wasn't imported at all. I'm using Wordpress 2.0 and the tar.gz you attached.
#9
I managed to import WordPress stuff into plain D5 then upgraded to plain D6 with no problems.
#10
I did a lot of rework on the module to make it work for my Drupal 6 installation. It's not perfect but it ran well enough to import my blog. I also added a couple features. My Wordpress version was 2.0.x and the export file was done using the plugin from http://technosailor.com/2006/07/05/wordpress-to-wordpress-import/ (slightly tweaked to export only 100 posts per xrss file).
Note that the file upload box is still there but I don't think it works (I created an option for a file already on the server).
What I think works:
What I know doesn't work:
I did a lot of testing by looking at urls in xml sitemaps generated by my old Wordpress and my new Drupal 6, I suggest anyone considering this do the same. I'm also going to need to review all my posts one-by-one for any other oddities, but I'm overdue for a good deep audit anyway. Make sure to set the options on pathauto so you get aliases that match your old permalink structure.
I hope this helps, but don't expect magic (backup and test offline until it works).
The attachment is the .module file.
#11
It worked for me just fine. I used your .module file and the .info file from #7.
Uploading the .xml file seemed to work just fine though I also manually set the path in the .module file so I can't be sure. I also had to manually change the input filter from 'Wordpress' to 'Full HTML' in order for the posts to look like they should (new lines etc. weren't being parsed).
#12
On a related note, I compiled a patch to make the wp2drupal module work with D6.4:
http://www.mc-kenna.com/2008/09/patch-for-wp2drupal-for-drupal-6/
Using the patch I successfully converted the data (nodes + comments) from my WP 2.6.2 installation.
#13
If you make this work properly I'd be happy to hear how since it's been driving me up the wall for many days now.