Install

Works with Drupal: ^9 || ^10

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 22.02 KB
MD5: 9bbf21a9552cac3f2502085316f776ef
SHA-1: cca8ea5a4fdc8e4c72049dff1e45ff8932538f64
SHA-256: cc66058978f926cefd376182093defa8f6d65ecab3f9870cbc8103ec53ad0437
Download zip 36.78 KB
MD5: f85af36af800e6f866bb2beecaed36ce
SHA-1: 5c2f79509531734e690d4823e79bf89cd6d76400
SHA-256: 5d67f30fcbb54bbeaa084b9a0234eec7aa94f5efaa02d5d4e629525867160c2c

Release notes

wordpress_migrate module for importing WordPress sites into Drupal

"Alpha7" version brings bug fixes and new features

The wordpress_migrate Alpha7 release includes many bug fixes and enhancements. It is intended to be the easiest solution for WordPress website operators to migrate their content into Drupal. This uses the WXR XML site export (not a direct database connection) to generate posts, tags, categories, users and comments -- no server-level access needed. Curious to throw your WordPress site in a new platform? You can try Drupal yourself using DDEV quickstart. There's never been a better time to check out alternatives to WordPress. This module was created in 2010 and this is the 18th tagged release.

We are moving ahead with adding Drupal 11 support in the next release, Alpha8. Alpha7 is the last release with Drupal 9.x, 10.0.x and 10.1.x support. Because of the many APIs involved we are narrowing backwards compatibility. Alpha8 will be compatible with Drupal 10.2.x to Drupal 11.x. We recommend the most modern PHP version available on the 8.2, 8.3 or 8.4 branches.

Please see the 8.x-3.x plan for more. The #migrate chat channel is on Drupal Slack for this and similar modules. For Alpha7 We got a bunch of long-standing issues resolved in many areas:

Content posts & pages: New feature: Old WordPress permalinks are preserved as they are converted into pathauto path aliases en masse. (If the base URL field is left blank, content is assigned regular paths like node/0, node/1 and so on.) Gutenberg blocks can be processed as "Full HTML" currently, however they are not imported in a manageable block form. (Drupal has a Gutenberg module of its own but it is not integrated to this one.)

Users: Additional safety checks and error catching added. Existing users (keyed by email address) will not be overwritten. Duplicate users should not be a problem.

Migration entities: Issues with generating migrate configuration entities have been addressed to remove warnings and implement/update new APIs from other modules. If you made migration groups with an old version you should probably start fresh with this one.

New documentation: Thanks to volunteers the README.md is updated and new documentation pages are in. Check the landing page, FAQ, WordPress and Drupal terminology and concepts, and generating test content.

Security note: New access checks are allowed in entity lookups during the migrate process. Our module assumes the operator of the migration is an administrator who has access to all entities. Also this module can create new users (WordPress post authors) which are set to "active" so be sure to review your users after the migration is completed. The module can be disabled and its data deleted after your migration is complete. New feature: existing users are not altered by the import. (Watch for messages about "ignored" user entries in the migration interface - these are bypassed and not altered.)

Issues addressed in Alpha7:

  • Issue #2904545 by damienmckenna, hongpong, splash112, caspervoogt, phjou, ivrh, ressa, tabestan, john_b, bserem, apmsooner: Import permalink as URL paths, README updated, refactor into processUrlPathAliases function
  • Issue #3131928 by hongpong: Continuous Integration on Gitlab. New Gitlab CI functional tests make sure the form pages can load, many phpstan & phpcs code quality fixes, cspell notices and other CI. Old Drush 8 code and DrupalCI code removed. Includes older core versions in CI tests now.
  • Issue #3123393 by dinarcon, hongpong, baltowen, splash112, uridrupal, lobodakyrylo: Users are duplicated (Integrity constraint violation) Duplicate entry. Map uid property & prevent overwriting existing users.
  • Issue #3389654 by hongpong, baltowen: Duplicative generated migration group causes uncaught error at review stage EntityStorageException'
  • Issue #3489725 by hongpong, baltowen, msielski, ressa, tolstoydotcom: Dependency injection and access check. Code improvements (Ported forwards from Drupal 11 patch).
  • Issue #3390754 by dinarcon, hongpong, baltowen, ressa: Undefined array key "migration" in findMigrationDependencies(). Fix if default_author does not exist.
  • Issue #3489324 by baltowen, ressa. Include link to configuration form in WordPress Migrate UI module.
  • Issue #3484883 by msielski, vaidas_a, hongpong, mithun-a-sridharan, ryumaou. Protocol "public" not supported. Change data_fetcher_plugin to use file instead of url. Caused by upstream API migrate change.
  • Issue #3487624 by ressa. Create a comprehensive documentation page for WordPress Developers new to Drupal.

Contributors

Active maintainer for this release was HongPong (Dan Feidt). This took a lot of work from everyone; Drupal community members in multiple continents pulled off Alpha7. Special thanks to ressa for documentation, dinarcon for config expertise and baltowen for several elegant fixes. Additional thanks to baltowen, tolstoydotcom and msielski for fixes added to the Drupal 11 update and patched into this one.

Contributors to Alpha7 included code, project management, documentation, bug reporting, discussion and ideas: damienmckenna, splash112, caspervoogt, phjou, ivrh, ressa, tabestan, john_b, bserem, apmsooner, dinarcon, baltowen, msielski, ryumaou, tolstoydotcom, splash112, uridrupal, lobodakyrylo, mithun-a-sridharan, vaidas_a, ryumaou. Please kindly support their work.

Coming soon: D11 support and pluggability

We will soon have a pluggable extension framework, so that additional WordPress plugin data can be converted, starting with Yoast SEO meta fields.

The Drupal 11 version (Alpha8) is nearly ready and a number of fixes have been brought forward into this release, Alpha7. Alpha8 will include a new interface / factory / service system.

Help wanted

Contributors make this module possible. We have more issues listed on the the 8.x-3.x plan. Here are a few the WordPress community may want to check out:

  • Issue #3435726: Drupal 11 compatibility fixes
  • Issue #3173973: Pluggable extension, support contrib + custom WordPress, Yoast SEO
  • Issue #2927510: Wordpress new line to paragraph conversion. This will be adapted to the pluggable extension system.
  • Issue #3490071: Implement Advanced Custom Fields (ACF / SCF) support
  • Issue #3490070: Implement Custom Post Type (CPT) support
  • Issue #3489714: Implement Gutenberg Block imports
  • Known issue: Issue #3313145: "No database connection configured for source plugin variable". We believe this error message you may see is an issue from Drupal core.
  • Issue #3489516: Implement Drush 12+ on wordpress_migrate.

Other projects

"WordPress Migrate SQL" offers the alternate direct database approach. It is not integrated with this module. It is also possible to build a custom import solution from scratch using modules like feeds.

For testing, now we have an external WordPress Test Imports project which lets module contributors run a variety of imports easily.

Again thank you to everyone in the Drupal and WordPress community for supporting wordpress_migrate. This was really driven by volunteers.

Created by: hongpong
Created on: 27 Nov 2024 at 05:32 UTC
Last updated: 27 Nov 2024 at 05:49 UTC
Bug fixes
New features

Other releases