Opened 3 years ago
Closed 3 years ago
#11680 closed defect (bug) (invalid)
wp_load_image() out of memory
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 2.9 |
| Severity: | normal | Keywords: | |
| Cc: | scribu@…, Denis-de-Bernardy |
Description
On a host with 128M, I get:
Fatal error: Out of memory (allocated 39321600) (tried to allocate 1232 bytes) in .../wp/wp-admin/includes/image.php on line 163
Change History (12)
- Cc Denis-de-Bernardy added
- Milestone changed from Unassigned to 2.9.1
that's 32MB, btw. the host must be ignoring your 128MB value.
Hmm allocated 39321600 isnt that more like 37MiB? Is it possible the host server was literally, out of memory?
comment:6
miqrogroove — 3 years ago
scribu, was this image in excess of 5 megapixel?
comment:8
miqrogroove — 3 years ago
Such a small image should not require 37 MB, nor 32 MB nor 128 MB. Is the error reproducible? Can you attach the file for us?
I've tried with several images of similar sizes and they all fail on the live site.
On localhost it works fine, even with larger images. So I'm tempted to think the host is the source of the problem.
comment:10
scribu — 3 years ago
Here's the image anyway: http://img204.imageshack.us/img204/9527/f1000002.jpg
comment:11
miqrogroove — 3 years ago
Is your localhost limited to 32 MB? One thing to try for server-specific issues is to run memory_get_usage() without wp_load_image() and see if the baseline number is unreasonably high.
comment:12
scribu — 3 years ago
- Milestone 3.0 deleted
- Resolution set to invalid
- Status changed from new to closed
Can't reproduce anymore.

that's 32MB, btw. the host must be ignoring your 128MB value.