• Resolved jesspace

    (@jesspace)


    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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Martin Tod

    (@mpntod)

    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

    (@jesspace)

    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/

    Plugin Author Martin Tod

    (@mpntod)

    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

    (@mpntod)

    I’ve been doing some more digging.

    You might want to install TPC Memory Usage or 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 – 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

    (@jesspace)

    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

    (@mpntod)

    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) is really good for understanding some dimensions of site speed.

    Plugin Author Martin Tod

    (@mpntod)

    Hi Jess,

    Your site appears to be working now. Did you discover what the problem was?

    Best wishes,

    Martin

    Plugin Author Martin Tod

    (@mpntod)

    Hi Jess,

    The latest version has been adjusted to significantly shrink the cache and so should use less memory.

    Martin

    Thread Starter jesspace

    (@jesspace)

    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

    (@mpntod)

    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.