Title: Memory error
Last modified: August 19, 2016

---

# Memory error

 *  [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/)
 * Hi all,
 * I have been getting an error message on my dashboard about class-simplepie.php.
   Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
   1966080 bytes) in /var/www/vhosts/xxxxxxxx/httpdocs/wp-includes/class-simplepie.
   php on line 5410
 * I have got rid of it by deactivating all plugins.
 * However I am unable to upgrade to 3.0.1 as even with plugins deactivated I then
   get the error message of
    Fatal error: Allowed memory size of 33554432 bytes 
   exhausted (tried to allocate 2966269 bytes) in /var/www/vhosts/xxxx/httpdocs/
   wp-includes/class-http.php on line 1408
 * I have done some research but am not technical enough to follow it all. However
   as I understand it there is some memory problem.
 * The fix I have found is to add define(‘WP_MEMORY_LIMIT’, ’64M’); to the wp-config.
   php, but I have tried that and it’s had no effect.
 * And all the stuff I have found in the research is about a year old, I can’t see
   anything newer than that, and nothing relating to version 3.
 * Anybody got any ideas what I can do to fix this? Originally the site itself was
   down but since deactivating the plugins it’s up, but obviously with problems.
 * Thanks
    Peter

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785026)
 * [increasing memory](http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
   available for php.
 *  Thread Starter [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785032)
 * Thanks for that.
 * I’ve read that and added a line to wp-settings.php immediately after
 * // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR
   and WP_CACHE.
    wp_initial_constants( );
 * I’ve added
 * define(‘WP_MEMORY_LIMIT’, ’64M’);
 * This didn’t have any effect, so I changed the 64 to 96 as it suggested, no effect
   either.
 * I may have put it in the wrong place though, I’m no expert at this stuff. Is 
   this the right place?
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785036)
 * that seems to be the right place.
 * have you contacted your hosting provider?
 * you may also try:
 * -deactivating ALL plugins temporarily to narrow down and possibly fix the problem.
   If the problem goes away, activate them individually to find the culprit?
 * If you don’t have access to your admin area, try deactivating them [manually](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   via FTP or phpMyAdmin.
 * -switching to the default theme (Twenty Ten) for a moment by renaming your current
   theme’s folder in wp-content/themes. The idea is to force WordPress to fall back
   to the default theme to rule out any theme-specific issue?
 * If you don’t have access to your admin area, then access your server via [FTP or SFTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.
 *  Thread Starter [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785037)
 * Thanks, I’ll contact the hosting provider.
 * I can remove the error message by deactivating all plugins, but even with them
   all deactivated I still couldn’t upgrade, so there is still a problem even with
   plugins deactivated.
 * Tried changing to twenty ten, still all the same problems.
 * Thanks for the help
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785038)
 * I would suggest upgrading manually. Not every server is copacetic with upgrading
   the 3.x branches due to increased file size, among other things.
 *  Thread Starter [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785041)
 * I might wait, as I still get the dashboard error about simple pie unless I deactivate
   all the plugins, so it looks like there’s still a memory issue regardless. I’ll
   see what the host says first.
 * But if that is fixed and I still can’t upgrade I’ll give that a go, thanks for
   the suggestion. Always installed via fantastico and done auto upgrade, so that
   will be a first for me.
 *  Thread Starter [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785045)
 * Contacted host, they say I can add
 * memory_limit = 64M
 * to the php.ini and that will fix it. It’s on 32 m at the moment.
 * Tried that and it doesn’t work. Still getting
 * Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
   1966080 bytes) in /var/www/vhosts/bulnbulnps.vic.edu.au/httpdocs/wp-includes/
   class-simplepie.php on line 5410
 * It’s not plugin specific, as I can deactivate random plugins and at a certain
   point it goes away, independent of which ones.
 * Hmm, no idea what to do now.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785072)
 * What kind of PHP are they using? Not the version, but like suPHP, or php-cgi,
   or what have you?
 *  Thread Starter [peter1](https://wordpress.org/support/users/peter1/)
 * (@peter1)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785125)
 * They eventually worked it out for me. Somehow they upped the limit to 128m, everything
   works fine now.
 * Don’t know why my efforts didn’t work, but it’s fixed at least, thanks for all
   the help all.
    Peter

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Memory error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [peter1](https://wordpress.org/support/users/peter1/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/memory-error-1/#post-1785125)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
