Repository navigation
Description
Summary
Some frontend requests terminate with PHP's allowed-memory-size fatal while rendering a navigation item, instead of returning the rendered page. This interrupts page delivery for the affected requests.
Customer context
- Product / area: Neve navigation and mega-menu rendering
- Version: 4.2.8
- Environment: WordPress 7.1.4/7.1.5; PHP 8.3.24; 128 MiB PHP memory limit
- Integration / third party: Not provided
- Reported symptom: 13 memory-exhaustion occurrences on one site
- Impact: Affected frontend requests fail before delivering the page.
Reproduction notes
Not reproduced locally. Telemetry reports the fatal at inc/views/nav_walker.php:346 but includes no structured stack or menu contents. A possible source-path scenario, inferred from the code, is rendering a menu with multiple items using the neve-mm-heading class and # URL, especially across repeated menu renders. The affected site's menu size and memory baseline are unknown.
Diagnosis
Conclusion
The inspected v4.2.8 source contains a reachable callback-lifecycle path that can retain additional closures as qualifying mega-menu headings are rendered. This provides a code-level per-request memory-growth path and plausibly contributes to the reported fatal, but the available telemetry does not prove it is the sole cause on the affected site.
Where this likely occurs
inc/views/nav_walker.php—Nav_Walker::__construct()approx. lines 46–49 registerstweak_mm_heading()on menu-item arguments. In v4.2.8,Nav_Walker::tweak_mm_heading()approx. lines 328–354 registers an output-filter closure for each item with theneve-mm-headingclass and#URL; the reported line 346 is inside that closure's title concatenation.header-footer-grid/templates/components/component-nav.php— the primary-navigation template callswp_nav_menu()withNeve\Views\Nav_Walker(v4.2.8 approx. lines 34–45), making the path reachable during frontend menu rendering.- WordPress core is not in the workspace. Upstream
WP_Hook::add_filter()stores callbacks andWP_Hook::apply_filters()iterates registered callbacks; this behavior was checked in the public WordPress source. The Neve callback is not removed in the inspected method.
Engineering notes
The same callback-registration path remains in v4.2.19 (inc/views/nav_walker.php, Nav_Walker::tweak_mm_heading(), approx. lines 301–327), so the evidence does not identify a regression boundary. Telemetry reports 13 occurrences on one site; it does not provide the number of qualifying headings, repeated menu renders, or other request memory consumers. The callback buildup is a plausible contribution, not a verified exclusive attribution.
Test coverage status
tests/test-neve-nav-walker-aria-label.php covers menu-title and toggle-label formatting, not callback lifecycle, repeated menu rendering, or memory use. No relevant coverage for the reported memory path was found during inspection.
What to verify or explore next
- A reproduction with multiple qualifying headings and repeated primary-menu renders may establish whether callback count and memory usage increase during one request.
- Comparing memory use and callback counts against the reported 128 MiB limit may help attribute the fatal.
- Other plugins and site-specific request memory usage remain relevant compatibility factors.
Unknowns / follow-up
The actual menu configuration, heading count, item-title sizes, repeated render count, and memory use before Neve menu rendering are unavailable.
Confidence
Confidence: 76/100
The reported line is inside a reachable menu-render callback, and the inspected source registers a retained closure for each qualifying heading. This establishes a plausible per-request memory-growth defect, while the missing menu and memory-baseline data prevent definitive attribution of every occurrence.
Crash telemetry
| Occurrences | 13 |
| Distinct sites | 1 |
| First seen | 2026-11-18 14:10 UTC |
| Last seen | 2026-11-22 16:28 UTC |
| Crash location | product:inc/views/nav_walker.php:346 |
| Request context | frontend |
| Inside Themeisle SDK | no |
| Product versions | 4.2.8 |
| WP versions | 7.1.4, 7.1.5 |
| PHP versions | 8.3.24 |
| SDK versions | 3.3.61 |
Source: automated crash report — neve, fingerprint d3232863259a89be9d5335443b97e4d2
Generated by bug-report-triage (ID: bug-report-triage_6b03d72d30f882.84464601)
Activity