Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Customizer controls script throws when WooCommerce is inactive and an Elementor shop template exists (woocommerce_product_catalog section missing)

Aperta
#4,653 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@girishpanchal30 ci sta già lavorando.

Dal 13/10/2026.

  • #4654 di @girishpanchal30 — integrata
  • #4656 di @pirate-bot — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug-report bug-report-triage customer report

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 the woocommerce_product_catalog and neve_single_product_layout sections; it is called approx. line 406.
  • inc/compatibility/woocommerce.php — add_customizer_options() approx. lines 145–149, which sets hasElementorShopTemplate and hasElementorProductTemplate via Elementor::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)

Lingua principale
PHP
Stelle
307
Fork
88
Merge medio
1g 13h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Codeinwp/neve

Tutte le issue di Codeinwp/neve

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.