Not working with large media libraries; tries to allocate large amounts of mem
-
As the subject says. A site with 43000+ media items tries to allocate several hundred megabytes of memory, even if only selecting a small subset of posts (~20 posts) to export. Specifially line 232 triggers this fatal error, and I believe the reason is that you load ALL media items into an array (line 81), rather than narrow that query down to only include relevant posts. In line 92 you know which posts are relevant for the query, why not use that to construct a much more optimized query?
This error is the same one that causes the ERR_INVALID_RESPONSE response as others have posted about.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working with large media libraries; tries to allocate large amounts of mem’ is closed to new replies.