This module should be updated to include Drush 9 compatibility. Some of this can be automatically generated. see https://weitzman.github.io/blog/port-to-drush9 for tips.

I wrote a patch converting drupalmoduleupgrader to drush 9: #2949601: Drush 9 compatibility. Something similar could be done here.

Comments

HongPong created an issue. See original summary.

alfaguru’s picture

StatusFileSize
new5.65 KB

Hi, I have made a patch for this issue. It's not perfect - the printed list of migrations at the end is always empty and there's no validation of options - but it does generate working migrations when correct options are supplied.

hongpong’s picture

Status: Active » Needs work

Thank you alfaguru this is an excellent start on this issue. I think we should have validation before committing this though.

hongpong’s picture

Closing the other issue about this. John B added:

Drush 9 does not work with drush.inc files for earlier versions of drush, and a new drush implementation is needed for this module.

FWIW, drush wordpress-migrate-generate fails silently with drush 8.

stella’s picture

Status: Needs work » Needs review
StatusFileSize
new6.31 KB

Updated patch which now prints out the list of migrations generated.

hongpong’s picture

Title: Implement WordPress Migrate with Drush 9 » Implement WordPress Migrate with Drush 9/10
Issue tags: +Drush 10 readiness, +Drush-9, +drush-10

Thanks will try to get this looked at asap. Will try to get it to jibe w. drush 10 also.

guptahemant’s picture

StatusFileSize
new0 bytes

Here is the patch against latest release, Its a reroll of #5

guptahemant’s picture

StatusFileSize
new6.07 KB

Previous patch was empty, here is a new patch.

digitaldonkey’s picture

As '--greoup-id' seems required. Maybe you do

$configuration['group_id'] = isset($options['group-id']) ? $options['group-id'] : 'default';

@migrateGenerate():L78

Second get('migration_group') should be getMigrationTags() as of #3159476

digitaldonkey’s picture

StatusFileSize
new6.11 KB
digitaldonkey’s picture

StatusFileSize
new6.56 KB
digitaldonkey’s picture

StatusFileSize
new6.54 KB
digitaldonkey’s picture

If I'd known that we only generate config entities, that I can't use for further processing I wouldn't have tried to fix this one :/
What I expected was a kind of `wordpress:migrate-generate --xml-files` so that I could proceed working from there.

hongpong’s picture

Status: Needs review » Closed (outdated)

We are moving this to a new issue for implementing Drush 12+: #3489516: Implement Drush 13+ on wordpress_migrate. Everyone that worked on this one will be credited. Thank you all!