[wp-hackers] fetch_feed fatal memory error

Dan Gayle dangayle at gmail.com
Mon Jun 21 21:53:58 UTC 2010

If you put too large of a feed into the function fetch_feed() a memory
error will occur, flushing everything in the buffer, and WP will exit
with a fatal error. Parsing any large XML document like this as a
document tree has a tendency to run into memory allocation errors, RSS
being no exception.

Increasing the WP_MEMORY_LIMIT fixes the problem, but ideally,
shouldn't the feed be buffered away from WP, so that whoever controls
the provider end of the feed doesn't have the power to cripple your

The example warning given when wp_debug is true:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 1158121 bytes) in /home/www/public_html/wp-includes/wp-db.php
 on line 478

I thought of submitting this as a bug ticket, but I've never done that
before. Would this qualify?

More information about the wp-hackers mailing list