Customizer controls script throws when WooCommerce is inactive and an Elementor shop template exists (woocommerce_product_catalog section missing)
メンテナーはふだん 1 日以内に返信
@girishpanchal30 がすでに取り組んでいます。
2026年10月13日 から。
評価
この issue はまだ評価されていません。
説明
Summary
With WooCommerce deactivated and a leftover Elementor shop (product archive) template on the site, the Customizer, including the Header Builder, fails to finish loading and stays stuck.
Expected: the Customizer loads normally; the Elementor-template warning is only attempted when the WooCommerce section exists.
Actual: a script error stops initialization.
Impact: the Header Builder and Customizer are unusable on affected sites until WooCommerce is re-enabled or the template is removed.
Customer context
- Product / area: Neve (Pro) Customizer / Header Builder
- Version: Not provided
- Environment: WooCommerce disabled; Elementor shop template remains
- Reported symptom: Customizer/Header Builder stuck loading
- Impact: Customizer unusable on that site
Reproduction notes
Inferred steps: 1) Create an Elementor product archive template. 2) Deactivate WooCommerce. 3) Open the Customizer. Expected: the script error appears and the UI hangs. Not reproduced at runtime.
Diagnosis
Conclusion
The code path appears to call .notifications on the result of wp.customize.section('woocommerce_product_catalog') without checking that the section exists. That section is registered by WooCommerce, so with WooCommerce off the result is likely undefined and the call would throw. This is inferred from source, not runtime-verified.
Where this likely occurs
assets/apps/customizer-controls/src/controls.js—checkHasElementorTemplates()approx. lines 317–345, on thewoocommerce_product_catalogandneve_single_product_layoutsections; it is called approx. line 406.inc/compatibility/woocommerce.php—add_customizer_options()approx. lines 145–149, which setshasElementorShopTemplateandhasElementorProductTemplateviaElementor::has_template().
Engineering notes
The elementor flags are set in the WooCommerce compat class. Worth checking whether that class loads when WooCommerce is inactive, and whether the flag is true in that state. A leftover template post is apparently enough to trigger the branch. The product-template block just below uses the same pattern for neve_single_product_layout.
Test coverage status
No relevant coverage was found during inspection.
What to verify or explore next
May be worth verifying the reproduction with WooCommerce off plus an Elementor product_archive template, and checking the browser console for a TypeError.
Unknowns / follow-up
The affected Neve version is unknown. Whether the flag is populated with WooCommerce off was not confirmed.
Confidence
Confidence: 80/100
Source shows the Customizer script dereferences a WooCommerce section without a null check, matching the customer's diagnosis. Not runtime-reproduced.
Source: HelpScout #3480859978
Generated by bug-report-triage (ID: bug-report-triage_6acd668c519742.22923583)
- 主要言語
- PHP
- スター
- 307
- フォーク
- 88
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeinwp/neve のほかの issue
-
Customizer responsive sanitizer fatals when input is an array対応中かも @HardeepAsrani が 7 日前に担当しました。 オープンbug-report bug-report-triage crash-report
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Codeinwp/neve#4651 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Duplicate H1: hidden screen-reader title H1 rendered alongside custom layout H1 when page title is hidden対応中かも @HardeepAsrani が 4 日前に担当しました。 オープンbug-report bug-report-triage customer report
難易度 4/5 1〜2日 初心者へのやさしさ 48/100
Codeinwp/neve#4652 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
feature-request-triage
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
feature-request-triage
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
customer report feature-request-triage
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Featured image not passed to checks in the Tasks column or publish blocks対応中かも @roborourke が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
humanmade/publication-checklist#100 ·
メンテナーはふだん 1 日以内に返信
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MagnaCapax/PMSS#1072 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
verbb/formie#3013 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Documentation Platform: Plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信