Open juanluisbaptiste opened 4 years ago
Hi,
When setting WP_SITEURL wp-cli command fails with this error:
sudo -u nginx wp-cli search-replace '${OLD_URL}' '${PROTOCOL}${SITE_URL}${SITE_PORT}' --ski p-columns=guid PHP Notice: Undefined index: HTTP_HOST in phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP _CLI/Runner.php(1197) : eval()'d code on line 91 PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in phar:///usr/bin/ wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1197) : eval()'d code:97 Stack trace: #0 phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1197): eval() #1 phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress() #2 phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start() #3 phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) #4 phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap() #5 phar:///usr/bin/wp-cli/php/boot-phar.php(11): include('phar:///usr/bin...') #6 /usr/bin/wp-cli(4): include('phar:///usr/bin...') #7 {main} thrown in phar:///usr/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1197) : eval()'d code on line 97
I haven't had a chance to take a look at it, working on some other new features.
Hi,
When setting WP_SITEURL wp-cli command fails with this error:
I haven't had a chance to take a look at it, working on some other new features.