10up / MU-Migration

This WP-CLI plugin makes the process of moving sites from single WordPress sites to a Multisite instance (or vice-versa) much easier. It exports everything into a zip package which can be used to automatically import it within the desired Multisite installation.
MIT License
329 stars 47 forks source link

Error: Unable to get the list of tables to be exported #51

Open thewizard1002 opened 6 years ago

thewizard1002 commented 6 years ago

When issuing this command (wp mu-migration export all site.zip --plugins --themes --uploads) on any site I have tried, I get the following Exporting site meta data... Exporting users... Exporting tables Error: Unable to get the list of tables to be exported

A CSV file and JSON file are created and have a lot of data. wp db export does export the whole database with no problem wp db tables lists all of the WP tables

replacing $tables = \WP_CLI::launch_self( with $tables = \WP_CLI::runcommand( on line 104 of class-mu-migration-export.php lets it continue if you manually specify the tables but then I get "Something went wrong while trying to export the database" but an .sql file is created with all of the tables and data.

I tried using $export = \WP_CLI::runcommand('db export', array('return' => true)); that I found in another post with that error message but I still get the same error.

IIS/My SQL 5.6/PHP 7.1.11

nicholasio commented 6 years ago

Related #47 Looks like something changed in the internal API of WP-CLI.

Thanks for you report. I'll look into this soon.

geneellis commented 5 years ago

Was this ever solved? I'm having the same problem.

nicholasio commented 5 years ago

@geneellis @thewizard1002 Can you try again? I have just merged #61. Make sure to update to the latest version.

geneellis commented 5 years ago

Will try again on the next migration. Thanks!

andyzito commented 5 years ago

I'm still seeing this on the latest commit.

nicholasio commented 5 years ago

Can you post the full error and details of what the migration you're trying to do?

andyzito commented 5 years ago

This is my bad, my version of wp-cli wasn't up to date. Sorry for posting in haste :)

jeffpaul commented 5 years ago

@azito122 so did updating wp-cli resolve your issue?

andyzito commented 5 years ago

Indeed.

patbell101 commented 4 years ago

As at Feb 2020 this is STILL happening for me in 2.4. In Laragon and in Local See terminal dialogue below

C:\laragon\www\Starter ? wp --version WP-CLI 2.4.0

C:\laragon\www\Starter ? wp mu-migration export all starter Exporting site meta data... Exporting users... Exporting tables Error: Unable to get the list of tables to be exported

Any remedies>