Title: Fatal Error: memory exceeded
Last modified: August 21, 2016

---

# Fatal Error: memory exceeded

 *  Resolved [jesspace](https://wordpress.org/support/users/jesspace/)
 * (@jesspace)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/)
 * I keep getting the following error
 * “Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate
   2540904 bytes) in /home/badchem/badchemistrytalent.com/wp-includes/functions.
   php on line 336”
 * Can’t figure out how to fix it. Any help would be greatly appreciated.
 * [http://wordpress.org/plugins/rotatingtweets/](http://wordpress.org/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4498990)
 * Has that only happened since you installed Rotating Tweets?
 * This can be caused by having lots of active plug-ins or by having a very complicated
   theme.
 * One thing to do would be to try switching off each plug-in in turn to see which
   might be causing it. And then try switching template to something simple like
   Twenty Eleven to see if the template is the cause.
 *  Thread Starter [jesspace](https://wordpress.org/support/users/jesspace/)
 * (@jesspace)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499002)
 * It’s only occurring in the space where the plugin should be. And wasn’t doing
   this before, the plugin was actually working quite well. An example can be seen
   at [http://www.badchemistrytalent.com/artists/knuckle-children/](http://www.badchemistrytalent.com/artists/knuckle-children/)
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499104)
 * One immediate thought is that it might be worth upgrading to the latest version
   of WordPress.
 * If it was working before but has only just stopped working, have you installed
   anything else recently? In essence, the page is crashing because PHP is running
   out of memory – and Rotating Tweets is the last thing to run that tips it over
   the edge. But it’s possible that something else is hogging most of the memory
   and triggering the problem.
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499116)
 * I’ve been doing some more digging.
 * You might want to install [TPC Memory Usage](http://wordpress.org/plugins/tpc-memory-usage/)
   or [Debug Bar](http://wordpress.org/plugins/debug-bar/) and use one of them to
   debug where all the memory is going. (I found Debug Bar easier to use).
 * I’ve just tried to assess the impact of Rotating Tweets by loading one of my 
   sites with and without the plug-in to see how much memory it was using and it
   seemed to be between 1.5MB and 3.3MB (with a LOT of different widgets and shortcodes
   on one page).
 * Alternatively, you may want to edit your `wp-config.php` file – [as shown here](http://codex.wordpress.org/Editing_wp-config.php)–
   to increase the amount of memory available to WordPress.
 * For example, you can increase PHP memory to 96MB via:
 *     ```
       define( 'WP_MEMORY_LIMIT', '96M' );
       ```
   
 *  Thread Starter [jesspace](https://wordpress.org/support/users/jesspace/)
 * (@jesspace)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499131)
 * Thank you very much, Martin. I will try your recommendations out and let you 
   know the results. Would capped memory limit cause the site itself to run slow
   as a whole?
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499148)
 * Possibly.
 * The other thing that appears to slow things down is pulling data in from other
   sites – which can be a problem with Rotating Tweets when it’s getting a lot of
   new data rather than using the cache.
 * I find [P3 (Plugin Performance Profiler)](http://wordpress.org/plugins/p3-profiler/)
   is really good for understanding some dimensions of site speed.
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499203)
 * Hi Jess,
 * [Your site appears to be working now](http://www.badchemistrytalent.com/artists/knuckle-children/).
   Did you discover what the problem was?
 * Best wishes,
 * Martin
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499219)
 * Hi Jess,
 * The latest version has been adjusted to significantly shrink the cache and so
   should use less memory.
 * Martin
 *  Thread Starter [jesspace](https://wordpress.org/support/users/jesspace/)
 * (@jesspace)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499220)
 * Todd,
 * I installed TPC Memory Usage which completely broke the website. Then had to 
   manually delete it and then everything seemed to start working again. So bizarre.
   I appreciate all your help looking into this and am excited for the new version.
 * Thanks again for all your hard work. It’s a great plugin!
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499231)
 * Hi Jess,
 * In the latest version I’ve rewritten the caching code to use about 75% less storage–
   which I hope should ensure that the problem really is sorted now.
 * Martin

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

The topic ‘Fatal Error: memory exceeded’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-memory-exceeded/#post-4499231)
 * Status: resolved