Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key warning in WP CLI #884

Open
fk-hm opened this issue Feb 11, 2025 · 0 comments
Open

Undefined array key warning in WP CLI #884

fk-hm opened this issue Feb 11, 2025 · 0 comments
Labels
bug Existing functionality isn't behaving as expected

Comments

@fk-hm
Copy link

fk-hm commented Feb 11, 2025

Steps to reproduce

  1. Go to the Altis Dashboard.
  2. Open a CLI session
  3. See this warning at the top of the console:
Warning: Undefined array key "HTTP_HOST" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1309) : eval()'d code on line 45
Warning: Undefined array key "HTTP_HOST" in /usr/src/app/wordpress/wp-includes/ms-settings.php on line 57

Describe what you expected to see

Silence this warning.

I assume we need to set the HTTP_HOST key when in a CLI context. I remember we maybe did this on various HM platform sites, but not sure.

Either way having this warning repeatedly during CLI operations looks poor and it's annoying.

@fk-hm fk-hm added the bug Existing functionality isn't behaving as expected label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected
Projects
None yet
Development

No branches or pull requests

1 participant