• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Help with the "WordPress Fatal error: Allowed memory size exhausted" error

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Help with the "WordPress Fatal error: Allowed memory size exhausted" error

This topic is: resolved

Tagged: allocate, broken, database, Fatal Error, memory, php, Wordpress

  • This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by crestfalleen.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 29, 2015 at 10:42 am #175064
    crestfalleen
    Participant

    I was just looking at one of my sites and found that one of my pages wasn't showing a featured image using the Genesis featured page plugin (which was originally set to show one). I went to change the settings on the widget and when I did I get the following error:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /wp-includes/query.php on line 1492

    I've also gotten the same error with "plugin.php on line 130" being the cause.

    I updated all my plugins, but got the same memory allocation error for the plugin "Blubrry PowerPress." I just changed the folder name in my plugin folder and tried to see if that was the issue, but it wasn't. I just have it disabled at the moment. All my other plugins updated with no problem.

    I've changed my plugin folder name and got the featured image on there to show up, so I'm guessing it is a plugin issue. However, the error I get is always a file memory allocation error, but it usually tells me a different file and file line that the issue is on.

    I've googled the problem and have found a bunch of threads on this issue with different answers and files/line numbers. Some work for those people, some don't. Does anyone know what I can do to fix this issue? If I find out what plugin the issue is in, I'll still need that plugin or the function that plugin does.

    I've looked how to increase the memory to fix this, but what I've found that I can fix, won't work. I've added "define('WP_MEMORY_LIMIT', '64M');" to my wp-config.php file, but that doesn't help. Can anyone help me? Thanks.

    http://www.rgm.me
    December 29, 2015 at 10:55 am #175065
    Christoph
    Member

    Hi,

    the problem is usually not a single plugin, but using a combination of plugins that use more memory than your server allows your account to use.

    The memory limit you defined in wp-config is too small, because you are already exhausting 64 MB. You can try setting it to 128 MB.

    But depending on your host that might work or might not work.

    Probably the easiest way for you to solve this, is to contact your host and ask them to increase the allowed memory usage to 128 MB


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    December 29, 2015 at 11:07 am #175067
    crestfalleen
    Participant

    Thanks so much. I've been looking through threads and found out how to find how much I was using and did increase it to 128 with the same code snippet I mentioned above. That seems to have fixed it as I'm not getting the error anymore. However, would it be best to go ahead and contact my host and have them increase it to 128 as well or will that not matter because what I've done with the code worked? Thanks for your help.

    December 29, 2015 at 11:10 am #175068
    Christoph
    Member

    Hi,

    you are welcome.

    If it works, there is no need to contact the host.

    If it stops working, I'd contact the host to ask them to increase the memory limit.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    December 29, 2015 at 11:11 am #175069
    crestfalleen
    Participant

    Great. Thanks again Christoph.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Help with the "WordPress Fatal error: Allowed memory size exhausted" error’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble