-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
Description
Describe the bug
I got these error when trying to export my multisites:
anh_legiang@grow:/home/grow.vn/public_html$ wp mu-migration export all site.zip --plugins --themes --uploads
PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 115
PHP Warning: Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
PHP Warning: Use of undefined constant ‘256M’ - assumed '‘256M’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
Exporting site meta data...
PHP Warning: file_put_contents(mu-migration-1611848399grow.json): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 452
Warning: file_put_contents(mu-migration-1611848399grow.json): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 452
Exporting users...
PHP Warning: fopen(mu-migration-1611848399grow.csv): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 187
Warning: fopen(mu-migration-1611848399grow.csv): failed to open stream: Permission denied in /home/anh_legiang/.wp-cli/packages/vendor/10up/mu-migration/includes/commands/class-mu-migration-export.php on line 187
Error: Impossible to create the file
If I tried to use root:
anh_legiang@grow:/home/grow.vn/public_html$ sudo wp mu-migration export all site.zip --plugins --themes --uploads --allow-root
sudo: unable to resolve host grow: Name or service not known
PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 115
PHP Warning: Use of undefined constant ‘WP_MEMORY_LIMIT’ - assumed '‘WP_MEMORY_LIMIT’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
PHP Warning: Use of undefined constant ‘256M’ - assumed '‘256M’' (this will throw an Error in a future version of PHP) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 120
Error: 'mu-migration' is not a registered wp command. See 'wp help' for available commands.
Steps to Reproduce
- Install MU-Migration
- CD to public_html directory
- Run the command:
wp mu-migration export all site.zip --plugins --themes --uploads
Screenshots, screen recording, code snippet
No response
Environment information
Ubuntu 22.01
WordPress information
6.1
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable