TOP › Forums › バグ報告と提案(Requests and Feedback) › WooCommerce wp_headersの破損が発生
Tagged: woocommerce
- This topic has 2 replies, 2 voices, and was last updated 1 year, 1 month ago by
nico.
-
AuthorPosts
-
-
2025年8月26日 at 15:53 #1565
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 ***
offstatus 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_Logicがsend_headersに -10000000 / 10000000 の優先度でフックしており、
これが WooCommerce のwp_headersフィルター処理と競合して$headersが null になっているようです。send_headers 介入が WooCommerce 10.1.0 以降の
wp_headersフィルター処理と競合している可能性があります。 -
2025年8月26日 at 17:39 #1566
nicoさん、こんにちは。
KUSANAGI専用プラグインのテーマアクセラレータを無効にしてみてください。
KUSANAGI専用プラグインについてはドキュメントを参照してください。
https://kusanagi.tokyo/document/kusanagi-plugin/ -
2025年8月26日 at 19:58 #1567
早速ご返答ありがとうございます。
テーマアクセラレーターを無効でエラー出なくなりました。
-
-
AuthorPosts
- You must be logged in to reply to this topic.