Special Recent Posts
Fatal Error: Allowed Memory Size Exhausted (8 posts)

  1. imnikkilee
    Posted 3 years ago #

    Hey all,

    I've recently been getting the following error message where my Special Recent Posts widget should be appearing:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40800 bytes) in /home/sarahioa/public_html/wordpress/wp-content/plugins/special-recent-posts/lib/phpthumb/GdThumb.inc.php on line 111

    Any ideas what I need to do to fix? It was working fine until yesterday so not sure what went wrong. The only thing I've been doing on the site is adding posts.


  2. romanpicisan
    Posted 3 years ago #

    Go to your wp-config.php and put the following code in that page. Thanks.

    define('WP_MEMORY_LIMIT', '96M');

  3. imnikkilee
    Posted 3 years ago #

    Thanks for the quick response!

    I had actually tried that already before posting my original question and it had't worked. I just tried it again just in case, but I'm still getting the same fatal error.

    Any other ideas?

    In case this extra info helps...
    I'm currently filtering 3 categories into the Special Recent Posts widget. Let's say they have IDs 1, 2, and 3. When I take out category 3 from the filtering list (leaving 1 and 2), the fatal error goes away. If I add category 3 back in but take out 2 (leaving 1 and 3) the fatal error is back. So something's going on with the one particular category, not the amount of categories I'm using.
    Again, I don't know if that helps but it's just something I noticed when playing around.

    If there's any other info I could provide, let me know. I'd love to sort this out.

    Thanks so much for your help!

  4. romanpicisan
    Posted 3 years ago #


    Where did you put the widget? Is it in the sidebar or in a template? Mine works properly in the index.php. Anyway, I'm glad that you had solved the first problem out. ;)

  5. imnikkilee
    Posted 3 years ago #

    Hi again,
    I'm using it in a widget, not a template. Think that makes a difference?

  6. romanpicisan
    Posted 3 years ago #

    Can I see your site? Give me the url, here.

  7. Luca Grandicelli
    Plugin Author

    Posted 3 years ago #

    Hello imnikkilee,
    That errors comes out when the plugin tries to manipulate an image which weight is definetely too high. So please, check your posts one by one trying to find the alleged one.

  8. ibm450
    Posted 3 years ago #

    @ romanpicisan
    thankyou - your suggestion worked for me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic