wp cli search-replace Error … when using –network

Question

I recently updated my local development server and WordPress. I use a Vagrant VMWareFusion box and copy my production server DB into my local setup. Then I use the command line to go to the public_html and do a search and replace on my domains. I usually have to change the main domain manually, with Sequel Pro, but then I used be able to run a search and replace on my production domains to change to local domains. The --network flag is now giving me the most dreaded error.

wp search-replace 'somedomain.com' 'local.somedomain.dvlp' --dry-run --network

But if I run without --network, no errors.

Anyone running into something like this with Multisite setup?

OS: Linux 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64
Shell:  /bin/bash
PHP binary: /usr/bin/php7.4
PHP version:    7.4.8
php.ini used:   /etc/php/7.4/cli/php.ini
WP-CLI root dir:    phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:  phar://wp-cli.phar/vendor
WP_CLI phar path:   /var/www/html/scasurgery-network/public_html
WP-CLI packages dir:    
WP-CLI global config:   
WP-CLI project config:  
WP-CLI version: 2.4.0

Is there any information I can share that would help me get this figured out. I’m trying to do some local dev work and the only way I found to change the domains is to go into the WP-Admin network > sites and change the domain in there. Is that the better approach? I’ve been using search-replace and it’s been good until now. Thanks

0
, kaplan 3 years 2020-08-20T14:10:39-05:00 0 Answers 38 views 0

Leave an answer

Browse
Browse