WordPress Question: How To Fix ‘Out of Memory’ Issues With SimplePie?

How to fix out of memory error SimplePie WordPressHeard the news? We’re asking our readers for interesting WordPress questions here at WPMU.org. Please submit a question if you haven’t already done so – you could win a 3 month membership at WPMU DEV, worth $159.

Today’s WordPress question comes to us from a WPMU reader by the name of James, who’s using SimplePie on his WordPress site. He says:

What’s the best way to fix / avoid those annoying “out of memory” issues with simplepie.php that constantly plague my site?

-James

Calling all WordPress experts! Do you have experience with SimplePie? Can you help James out with this issue? If you have any suggestions, please leave a comment below this article and let us know.

And don’t forget to submit your own WordPress question for the chance to win 3 months of WPMU DEV goodness!

Thanks for the photo: Milos Milosevic.

Comments (9)

  1. The best way to solve this is simply to bump up your memory limit. You can do that in your php.ini if you can access it, otherwise it’s a good idea to ask your provider to do so for you, since shared servers have limited resources.

    The reason this occurs is because parsing XML takes a lot of memory, and our verbose API doesn’t help much with this. We’re working on it though!

    (I’m the lead developer of SimplePie; feel free to ask any more questions here, or email me directly.)

  2. If you have access to your PHP.ini file, change the line in PHP.iniIf your line shows 32M try 64M or even 128M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
    If you don’t have access to PHP.ini try adding this to an .htaccess file:

    php_value memory_limit 64M
    Try adding this line to your wp-config.php file:Increasing memory allocated to PHP
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    Or, use this plugin:
    http://wordpress.org/extend/plugins/change-memory-limit/

Participate