Make WordPress Core

Opened 17 years ago

Closed 13 years ago

#9736 closed enhancement (worksforme)

Memory allocation failed on category.php

Reported by: matsubobo Owned by:
Priority: lowest Milestone:
Component: Taxonomy Version: 2.7.1
Severity: minor Keywords: needs-patch
Cc: Focuses: performance

Description

When I opened "/wp-admin/categories.php" I got following error message.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 3877 bytes) in /path_to_wordpress/wp-includes/category.php on line 369

I made over 70,000 categories manipulating MySQL table directory.

Attachments (1)

WS0507.JPG (51.8 KB ) - added by matsubobo 17 years ago.

Download all attachments as: .zip

Change History (8)

@matsubobo
17 years ago

#1 @Viper007Bond
17 years ago

  • Component AdministrationOptimization
  • Priority lowlowest
  • Severity majornormal

#2 @Viper007Bond
17 years ago

  • Keywords dev-feedback needs-patch added; category removed

#3 @Denis-de-Bernardy
17 years ago

  • Milestone UnassignedFuture Release
  • Severity normalminor

the only way to fix this is to rework the walker classes, in such a way that they only load what is needed (as is done in Yahoo Mail, for instance).

#4 @Denis-de-Bernardy
17 years ago

  • Keywords dev-feedback removed
  • Type defect (bug)enhancement

#5 @mattsains
16 years ago

What if we had something like

if num_rows * [rough estimate of memory needed per category] > memory_limit then

load only so much

else

go right ahead

#6 @mattsains
16 years ago

I can't replicate this error - The difference between one byte of assigned memory makes the page either completely fail or completely load.

#7 @nacin
13 years ago

  • Component OptimizationTaxonomy
  • Focuses performance added
  • Milestone Future Release
  • Resolutionworksforme
  • Status newclosed
Note: See TracTickets for help on using tickets.