Community Forums › Forums › Archived Forums › General Discussion › Help with the "WordPress Fatal error: Allowed memory size exhausted" error
- This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by crestfalleen.
-
AuthorPosts
-
December 29, 2015 at 10:42 am #175064crestfalleenParticipant
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.meDecember 29, 2015 at 10:55 am #175065ChristophMemberHi,
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
December 29, 2015 at 11:07 am #175067crestfalleenParticipantThanks 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 #175068ChristophMemberHi,
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.
December 29, 2015 at 11:11 am #175069crestfalleenParticipantGreat. Thanks again Christoph.
-
AuthorPosts
- The topic ‘Help with the "WordPress Fatal error: Allowed memory size exhausted" error’ is closed to new replies.