WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13146 closed defect (bug) (fixed)

Allowed memory exhausted after 8 levels

Reported by: ocean90 Owned by: filosofo
Milestone: 3.0 Priority: high
Severity: blocker Version: 3.0
Component: Menus Keywords: memory
Focuses: Cc:

Description

If you use 8 levels you get problems with your memory limit, in this case with 32MB (and 64MB), screen of the menu items: http://grab.by/42jU

Allowed memory size of 33554432 bytes exhausted (tried to allocate 12321150 bytes) in <b>H:\xampplite\htdocs\wp\wp-includes\nav-menu-template.php</b> on line <b>158</b><br />
Allowed memory size of 67108864 bytes exhausted (tried to allocate 38538081 bytes) in <b>/var/www/web39/html/blog/wp-includes/nav-menu-template.php</b> on line <b>142</b>

Change History (3)

comment:2 @ocean905 years ago

  • Severity changed from normal to blocker

Now only 7 levels, memory limit 128MB.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 95949765 bytes) in H:\xampplite\htdocs\wp\wp-includes\nav-menu-template.php  on line 42

That is a blocker for me.

The SQL queries are also very high, saving only one item 77 queries, saving 2 items 116 queries, 2 items with one level 199 queries.

Another one: add three times the same post and add one of them as a first level. After clicking Save Menu:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98009700 bytes) in H:\xampplite\htdocs\wp\wp-includes\nav-menu-template.php  on line 42

comment:3 @ocean905 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.