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 "HTTP_HOST" in phar (WP-CLI) #2582

Closed
ccharlton opened this issue May 3, 2024 · 1 comment
Closed

Undefined array key "HTTP_HOST" in phar (WP-CLI) #2582

ccharlton opened this issue May 3, 2024 · 1 comment

Comments

@ccharlton
Copy link

Platform

(X) MacOS
( ) Linux
( ) WSL2

Installed Via

(X) Homebrew
( ) Apt Package
( ) Manually

PHP Version

( ) 7.4x
( ) 8.0
(X) 8.3.6

Terminus Version

v3.4.0

Command Executed

terminus wp SITE.ENV

Expected behavior

Output should have been a non-error message or a list of WP-CLI commands.

Actual behavior

PHP error:

Warning: Undefined array key "HTTP_HOST" in phar:///opt/pantheon/wpcli/wp-cli-2.10.0.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1334) : eval()'d code on line 158
@pwtyler
Copy link
Member

pwtyler commented May 3, 2024

This should be fixed with updates to wp-config-pantheon.php and the recommendations made for wp-config for multisite.
The mu & upstream changes will be released when the next WordPress core release is pushed out, which is currently scheduled for next week.

See:
pantheon-systems/WordPress#382
pantheon-systems/documentation#8969
pantheon-systems/pantheon-mu-plugin#42

@pwtyler pwtyler closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants