Question to the Quic Wordpress community PHP errors

Hi all, this is not a question for the creators(although of course they can help), the question is rather for those who did it, namely, transferred their WP site to Quic, and got stability. At the beginning when I used the template Support for Wordpress HTTP 3 QUIC - #30 , I didn’t see any difficulties, but now I started getting errors. I created a test site in which I put a WP template with Quic https://quic.angellive.ru/

#limit_req_zone $binary_remote_addr zone=open:10m rate=30r/s;

server {
    listen      %ip%:%web_ssl_port% ssl;
    listen      %ip%:%web_ssl_port% quic;
#    listen      [::]:%web_ssl_port% ssl;
#    listen      [::]:%web_ssl_port% quic;

    server_name %domain_idn% %alias_idn%;
    root        %sdocroot%;
    index       index.php index.html index.htm;
    access_log  /var/log/nginx/domains/%domain%.log combined;
    access_log  /var/log/nginx/domains/%domain%.bytes bytes;
    error_log   /var/log/nginx/domains/%domain%.error.log error;

    ssl_certificate     %ssl_pem%;
    ssl_certificate_key %ssl_key%;
    ssl_stapling        on;
    ssl_stapling_verify on;

    # TLS 1.3 0-RTT anti-replay
    if ($anti_replay = 307) { return 307 https://$host$request_uri; }
    if ($anti_replay = 425) { return 425; }

    include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;

    # HTTP/3 specific settings
    ssl_protocols TLSv1.3;
    ssl_prefer_server_ciphers off;

    add_header Alt-Svc 'h3=":%web_ssl_port%"; ma=86400'; # Advertise that HTTP/3 is available
    add_header QUIC-Status $http3;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        try_files $uri $uri/ /index.php?$args;
        log_not_found off;
        access_log off;
    }

    location ~ /\.(?!well-known\/) {
        deny all;
        return 404;
    }

    location = /xmlrpc.php {
        deny all;
        access_log off;
        log_not_found off;
        return 403;
    }

    location / {
        try_files $uri $uri/ /index.php?$args;
#        limit_req zone=open burst=15 nodelay;

        location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|webp|ico|bmp|mid|midi|wav|rtf|css|js|pdf|jar)$ {
            expires 365d;
            fastcgi_hide_header "Set-Cookie";
        }

        location ~* /(?:uploads|files)/.*.php$ {
            deny all;
            return 404;
        }

        location ~ [^/]\.php(/|$) {
            try_files $uri =404;
#            limit_req zone=open burst=20 nodelay;
            include /etc/nginx/fastcgi_params;

            fastcgi_index index.php;
            fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

            fastcgi_pass %backend_lsnr%;

            include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;

            if ($request_uri ~* "/wp-admin/|/wp-json/|wp-.*.php|xmlrpc.php|index.php|/store.*|/cart.*|/my-account.*|/checkout.*") {
                set $no_cache 1;
            }

            if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_items_in_cart|woocommerce_cart_hash|PHPSESSID") {
                set $no_cache 1;
            }
        }
    }

    location /error/ {
        alias %home%/%user%/web/%domain%/document_errors/;
    }

    location /vstats/ {
        alias %home%/%user%/web/%domain%/stats/;
        include %home%/%user%/web/%domain%/stats/auth.conf*;
    }

    proxy_hide_header Upgrade;

    include /etc/nginx/conf.d/phpmyadmin.inc*;
    include /etc/nginx/conf.d/phppgadmin.inc*;
    include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
}

I tried using WP on different sites with similar plugins, but then I created a completely new clean one just with a template theme https://quic.angellive.ru/ And I started getting these errors. All the sites that I tried to use when installing this template give these errors. More errors where either does not occur,I mean databases for example.

2024/10/30 19:33:51 [error] 402309#402309: *284 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:35:46 [error] 402309#402309: *291 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/themes.php?page=starter-templates&ci=5"
2024/10/30 19:35:51 [error] 402309#402309: *296 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:37:51 [error] 402309#402309: *308 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:39:52 [error] 402309#402309: *315 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:43:52 [error] 402309#402309: *334 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:47:53 [error] 402309#402309: *355 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:49:52 [error] 402309#402309: *368 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:51:02 [error] 402309#402309: *383 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "POST /wp-admin/admin-ajax.php HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:51:12 [error] 402309#402309: *490 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:12 [error] 402309#402309: *492 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:14 [error] 402309#402309: *494 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:14 [error] 402309#402309: *496 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=164fbaf8-ab98-459f-8980-84452c85d75c&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:19 [error] 402309#402309: *500 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:52 [error] 402309#402309: *515 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:53 [error] 402309#402309: *517 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:56 [error] 402309#402309: *519 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:51:56 [error] 402309#402309: *520 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=b2d834ab-31f5-4164-b5f3-3a75e5d6e885&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:52:04 [error] 402309#402309: *523 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2Findex.php"
2024/10/30 19:52:56 [error] 402309#402309: *536 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:53:00 [error] 402309#402309: *538 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET / HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:53:05 [error] 402309#402309: *540 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET / HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/index.php"
2024/10/30 19:53:29 [error] 402309#402309: *585 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET / HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:"
2024/10/30 19:53:30 [error] 402309#402309: *591 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjdfkldsjfklds/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET / HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:"

My system is Ubuntu server 22.04, Hestia version v1. 8. 12, MariaDB 11.4.3, Nginx 1.27, PHP 8.2 Nginx caching is not enabled
Maybe one of you managed to use HTTP/3 without WP errors, share :grinning: Thank you

Hi @bestperson

Add this line to your conf:

fastcgi_param HTTP_HOST $host;

So you should get something like this:

fastcgi_index index.php;
fastcgi_param HTTP_HOST $host;
fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Reload Nginx and try again:

systemctl reload nginx
1 Like

Thanks for the help, but it didn’t help, still the same

2024/10/30 23:12:49 [error] 449922#449922: *155 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/"
2024/10/30 23:13:03 [error] 449922#449922: *261 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:05 [error] 449922#449922: *263 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:08 [error] 449922#449922: *265 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:10 [error] 449922#449922: *267 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=2553435e-50d7-4478-9be7-56a4f5577ddb&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:22 [error] 449922#449922: *271 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:42 [error] 449922#449922: *275 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:44 [error] 449922#449922: *277 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:47 [error] 449922#449922: *279 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:13:48 [error] 449922#449922: *281 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=88321837-74ef-4c8d-809c-ff28c882c27f&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:00 [error] 449922#449922: *283 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:25 [error] 449922#449922: *305 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:25 [error] 449922#449922: *307 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:28 [error] 449922#449922: *309 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:29 [error] 449922#449922: *311 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=6c111302-3da1-4742-ae0f-0f8ed6a0f06b&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:14:39 [error] 449922#449922: *313 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:16:26 [error] 994#994: *161 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:16:26 [error] 994#994: *163 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/spectra/v1/editor?_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:16:29 [error] 994#994: *166 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/widget-types?context=edit&per_page=100&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:16:30 [error] 994#994: *168 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 716; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 727; PHP message: PHP Warning:  Undefined array key "host" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/canonical.php on line 730; PHP message: PHP Warning:  Trying to access array offset on value of type bool in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-includes/class-wp-customize-manager.php on line 1994; PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /?customize_changeset_uuid=388d40e7-4474-4d06-acba-d59a62b665c3&customize_theme=astra&customize_messenger_channel=preview-0 HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"
2024/10/30 23:16:34 [error] 994#994: *170 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /home/kjgjhgjgkl/web/quic.angellive.ru/public_html/wp-content/plugins/query-monitor/collectors/raw_request.php on line 57" while reading response header from upstream, client: 104.28.161.38, server: quic.angellive.ru, request: "GET /wp-json/wp/v2/types?context=view&_locale=user HTTP/3.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm-quic.angellive.ru.sock:", referrer: "https://quic.angellive.ru/wp-admin/customize.php?return=%2Fwp-admin%2F"

Before posting I reproduced the “problem” in a test site using wordpress and quic and once I applied the fix no more errors on log.

Where did you apply the fix? In templates or directly on nginx.ssl.conf

Did I change /usr/local/hestia/data/templates/web/nginx/php-fpm in the template, or should I change it in the Nginx.conf file?

Sorry, I don’t understand the question.

/usr/local/hestia/data/templates/web/nginx/php-fpm/ is the dir for templates used by nginx standalone so I supposed you edited the wordpress templates used by your site (whatever.tpl and whatever.stpl) and then you rebuilt your web domain to apply the changes in templates.

To check whether it has been applied to your site:

grep -r HTTP_HOST /home/*/conf/web/

Ok, you edited the post and now the question is clear :wink:

You can test whether it works editing first nginx.ssl.conf file and reload or restart nginx. If it works fine, then edit the templates and rebuild your site to made the change permanent.

These translators are getting worse)

1 Like

Ok, you edited wordpress_opensourse.stpl template, now rebuild your web domain and just in case restart nginx.

Yes, I did the right thing, and the error went away. Could you give some information why this is so, and is it possible to add

fastcgi_param HTTP_HOST $host;

Into the default Wordpress template in Hestia, I think this would be useful?)

v-rebuild-web-domains user && systemctl restart nginx

Thank you very much this is priceless!

1 Like

Простите, я не редактировал tpl шаблон, как я вижу там нет этих строк, или все же туда тоже стоит добавить ?

fastcgi_param HTTP_HOST $host;

Great! :wink:

Wordpress is not checking whether HTTP_HOST header is defined or not and as it isn’t you get the error so this should be fixed in wordpress but I don’t know why using quic gives the error and when not using it it doesn’t.

As it only happens when using quic, (.stpl) there is no need to edit .tpl but it won’t hurt if you do it there too.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.