WooCommerce wp_headersの破損が発生

TOP Forums バグ報告と提案(Requests and Feedback) WooCommerce wp_headersの破損が発生

WooCommerce wp_headersの破損が発生

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #1565
      nico
      Participant

        Type: wp
        KUSANAGI Version 9.6.14-1.el9
        xserver
        AlmaLinux 9

        *** (active) nginx : nginx129 ***
        * nginx129.service - The NGINX HTTP and reverse proxy server
        Loaded: loaded (/usr/lib/systemd/system/nginx129.service; enabled; preset: disabled)
        Active: active (running) since Tue 2025-08-26 12:57:03 JST; 2h 49min ago

        *** (inactive) httpd : httpd24 ***
        * httpd.service - The Apache HTTP Server
        Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
        Active: inactive (dead)

        *** (active) php : php83 ***
        * php-fpm.service - The PHP FastCGI Process Manager
        Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; preset: disabled)
        Active: active (running) since Tue 2025-08-26 12:57:03 JST; 2h 49min ago

        *** (active) mariadb : mariadb10.11 ***
        * mariadb.service - MariaDB 10.11.14 database server
        Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
        Active: active (running) since Fri 2025-08-08 17:40:13 JST; 2 weeks 3 days ago

        *** (inactive) psql : ***

        *** (inactive) pgpool-II : ***

        *** python ***
        Python 3.9.23

        *** Cache status ***
        bcache off
        fcache off

        *** WAF ***
        off

        *** SELinux ***
        off

        status completed.

        WordPress version: 6.8.2
        WooCommerce Version 10.1.1

        エラーログ例:
        PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given
        in wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php:73
        Stack trace:
        #0 … WC_Cache_Helper::prevent_caching()
        #1 … apply_filters('wp_headers')
        #2 … WP->send_headers()
        #3 … wp()
        #4 … index.php

        原因の切り分けを行ったところ、wp-kusanagi.php を無効化するとエラーが発生しなくなることが分かりました。
        Query Monitor で確認したところ、KUSANAGI_Theme_Accelerator_Logicsend_headers に -10000000 / 10000000 の優先度でフックしており、
        これが WooCommerce の wp_headers フィルター処理と競合して $headers が null になっているようです。

        send_headers 介入が WooCommerce 10.1.0 以降の wp_headers フィルター処理と競合している可能性があります。

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.

    Next article

    フォーラムについて