Opened 4 years ago
Last modified 3 years ago
#9736 new enhancement
Memory allocation failed on category.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | lowest | Milestone: | Future Release |
| Component: | Optimization | Version: | 2.7.1 |
| Severity: | minor | Keywords: | needs-patch |
| Cc: |
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)
Change History (7)
comment:1
Viper007Bond — 4 years ago
- Component changed from Administration to Optimization
- Priority changed from low to lowest
- Severity changed from major to normal
comment:2
Viper007Bond — 4 years ago
- Keywords dev-feedback needs-patch added; category removed
- Milestone changed from Unassigned to Future Release
- Severity changed from normal to minor
- Keywords dev-feedback removed
- Type changed from defect (bug) to enhancement
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
Note: See
TracTickets for help on using
tickets.

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).