Problem/Motivation

Has any work been done on a Drupal 8 version?

Proposed resolution

Port module to Drupal 8

Comments

mikeryan’s picture

Not yet, it should be done eventually. There's still plenty of work to be done on the core Migrate framework (#2456261: [META] Finalize the Migration system), not to mention the contrib tools that will help develop the D8 version of wordpress_migrate (and other migration modules).

mbaynton’s picture

I've got rudimentary functionality working at the present time (posts -> nodes). Will need to build this out a lot more in coming weeks because I have to actually do a WordPress -> D8 migration by 9/17, so I expect rapid changes and put it in github for now. See https://github.com/mbaynton/wordpress_migrate

mohit_aghera’s picture

mbaynton,
I would like to help you in this D8 module port. Do we have any roadmap listed or initially it's just porting D7 functionality to D8 ?

mbaynton’s picture

@mohit_aghera, thanks for the offer of help. I put together just enough functionality for my needs and haven't continued building out a D8 version of this module. Consequently there's lots of room for improvement :)

wordpress_migrate for D8 will be dependent on a more generic XML source plugin to the migrate framework, which there is currently discussion to substantially refactor, so I'd suggest focusing on missing functionality at the process plugin level. That shouldn't be impacted much by the inner workings of the source plugins so should be safe to do concurrently. Example: I didn't do migration of users at all, other process plugins I just made work for my particular purposes (example: node type, post bodies) need to be made of sufficient quality for general use.

Probably the hardest part will be getting a wordpress_migrate running for you at all :) Let me know if the instructions in my github readme have become outdated and you can't get it going. Thanks again for your help!

mohit_aghera’s picture

@mbaynton
Thanks for encouraging reply. Can we discuss about this on irc or somewhere ?
My irc nic is "mohit_rocks"

damienmckenna’s picture

Title: Drupal 8 » Port WordPress Migrate to Drupal 8

Standardized the title.

thatdamnqa’s picture

Is this issue that still needs some work? I'm new to Drupal, and this module is something I'm looking at using so would be ideal for me to start with. Is help still needed?

mxr576’s picture

I've just wanted to mention here that there is a WP Migrate module with a working D8 port. I haven't tested any of these WP -> D8 migration tools yet, but based on their codes the WP Migrate looks like a better choice, because it's built on the built in migrate features of the Drupal 8 and thanks for that it can import data directly from the WP's db.

  • mikeryan committed 97f6705 on 8.x-3.x
    Issue #2455469 by mikeryan: Initial draft of D8 support
    
mikeryan’s picture

Title: Port WordPress Migrate to Drupal 8 » [meta] Port WordPress Migrate to Drupal 8
Version: 7.x-2.x-dev » 8.x-3.x-dev

I've put some work into this the past couple of days, and have the basic framework in the 8.x-3.x branch. Let's treat this issue as a meta - I'll make general commits to the point of having a basically functional POC-level version in this issue, and open child issues for remaining functionality.

  • mikeryan committed 8489411 on 8.x-3.x
    Issue #2455469 by mikeryan, mbaynton: Port WordPress Migrate to Drupal 8
    
mikeryan’s picture

Title: [meta] Port WordPress Migrate to Drupal 8 » Port WordPress Migrate to Drupal 8
Status: Active » Fixed

All right, here we go! There is now a -dev release of wordpress_migrate for Drupal 8, providing a UI and a drush command (as well as an underlying API) for configuring migration from a WXR (exported WordPress XML) file. This is very basic at the moment, but hopefully there is enough of a framework available now for other people to pick off chunks to finish off.

You'll find it in the README and in the newly opened issues, but just to highlight two big holes at the moment:

  1. #2742269: Implement file/attachment migration for Drupal 8 - with the core support for file migration about to undergo significant refactoring, it would have been too difficult to manage dependencies to release now using the current core stuff, then switch over after. How can you help? Reviewing #2695297: Refactor EntityFile and use process plugins instead so we can do this sooner rather than later would be great...
  2. #2742311: Comment migration does not work - a problem in the XML parser plugin is preventing comment migration from working.

Anyway, having spent a good part of the past week on this, I need to turn my attention elsewhere for a while, but hopefully when I come back here there will be some patches to review ;)...

mikeryan’s picture

Oh, just wanted to belatedly thank mbaynton for taking the initial initiative here on the first draft of the module, as well as the first version of the XML source plugin underlying it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.