Skip to content

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

Description

@pirate-bot

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)

Activity

  1. added theissue type on Oct 12, 2026
  2. added
    customer report
    on Oct 12, 2026
  3. girishpanchal30 commented on Oct 13, 2026

    @girishpanchal30
    Contributor

    I have fixed it with PR #4654

  4. milicavs commented on Oct 13, 2026

    @milicavs

    🧪 QA steps and test links

    When a site still has an Elementor Pro shop (Products Archive) template but WooCommerce is deactivated, Neve's Customizer stops loading partway. The theme's own Customizer tools never appear, and the customer saw the Header Builder stuck loading.

    Requires: Elementor Pro, to create the template (the test links can't install it, so they simulate it).

    Link Build Bot check
    Reproduce the bug Neve 4.2.16 (released) ✅ Reproduced: no Style Book button or Search Settings field, and the console shows Uncaught TypeError: Cannot read properties of undefined (reading 'notifications')
    Verify the fix PR #4654 build e739426 ✅ Fixed: Style Book and Search Settings appear, no console error

    In the links:

    • Steps 1 and 2 are stood in for, and the links open on Appearance → Customize.
    • Elementor Pro can't be installed there, so a must-use plugin, "QA: report Elementor Pro shop and product templates", tells Neve both templates exist. WooCommerce isn't installed.
    • The PR build also shows version 4.2.16 under Appearance → Themes.
    • Tools → QA Logs shows debug.log.

    Reproduce on Neve 4.2.16:

    1. With WooCommerce, Elementor and Elementor Pro active, go to Templates → Theme Builder → Products Archive, add a template and publish it with the condition All Product Archives.
    2. Go to Plugins and deactivate WooCommerce.
    3. Go to Appearance → Customize and open the browser console.
    4. Open Header to load the Header Builder.
    • Bug: the Style Book button and the Search Settings field are missing from the top of the Customizer sidebar, and the console shows Uncaught TypeError: Cannot read properties of undefined (reading 'notifications'). The Header Builder may hang on loading.
    • Fixed: the Customizer loads fully with Style Book and Search Settings, the Header Builder works, and the console has no such error.
    Edge cases
    • WooCommerce active with the shop template: Customize → WooCommerce → Product Catalog shows the warning "Some of the settings might not work as expected because you are using a custom shop template made in Elementor."
    • WooCommerce active with an Elementor Pro Single Product template: the Single Product layout section shows the matching product-template warning.
    • WooCommerce off with only a Single Product template: the Customizer loads fully, with no error.
    • No Elementor Pro templates: no warnings, and the Customizer loads as before.
    • Header Builder after the fix: move a component, publish, and the change shows on the front end.

    Fix: #4654 (open)

  5. pirate-bot commented on Oct 13, 2026

    @pirate-bot
    CollaboratorAuthor

    QA agent — 🟡 Needs human QA · The Customizer fix passes simulated leftover-template checks; real Elementor Pro integration remains unchecked.

    With simulated Elementor template flags and WooCommerce inactive, the Customizer and Header Builder loaded normally. The same setup reproduced the notifications error on the base build. Header changes published and persisted, both warnings still worked, and all three PR-added tests passed. The exact customer setup with a real Elementor Pro template remains unchecked.

    Worth a human look

    1. Verify the Customizer and Header Builder with a real Elementor Pro Products Archive template left behind after deactivating WooCommerce.
    Checks (3 passed · 1 not tested)
    • ✅ When the localized Elementor shop/product template flags are true but their WooCommerce sections are absent, the Customizer completes initialization and the Header Builder opens without a notifications TypeError; shop-only, product-only and neither-template states also load.
    • ✅ Elementor shop and product warnings are added only for true template flags when their Customizer sections exist, including sections registered after initialization; the shop warning remains visible in WooCommerce Product Catalog.
    • ✅ With simulated leftover Elementor template flags and WooCommerce inactive, a Header Builder component change can be published, remains after reloading, and appears in the front-end header.
    • ⏸️ With WooCommerce deactivated and a real leftover Elementor Pro Products Archive template, Neve Pro's Customizer and Header Builder finish loading without a missing-section notifications error.

    Full report, evidence and session trail

  6. pirate-bot commented on Oct 21, 2026

    @pirate-bot
    CollaboratorAuthor

    🎉 This issue has been resolved in version 4.2.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  7. added
    released
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug-reportbug-report-triagecustomer reportreleased

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions