Get `Notice: Undefined index: SERVER_PROTOCOL ` error

Hello,
it’s seems Bedrock does not work in IP address. because i set ip address for WP_HOME define in the .env and i get following error:

PHP Notice: Undefined index: SERVER_PROTOCOL in /var/www/web/wp/wp-includes/load.php on line 18

Notice: Undefined index: SERVER_PROTOCOL in /var/www/web/wp/wp-includes/load.php on line 18
PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/web/wp/wp-includes/load.php:18) in /var/www/web/wp/wp-includes/pluggable.php on line 1171

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web/wp/wp-includes/load.php:18) in /var/www/web/wp/wp-includes/pluggable.php on line 1171

I usning debian/nginx.

Regards

This doesn’t seem like a Bedrock specific issue. Doing a Google search on that notice shows that it can happen when using PHP via the command line as well. I would assume that using an IP address instead of an address might give the same issue.

1 Like

Thanks @kalenjohnson,

I’ll check with domain and trying to find problem.

Regards