Fatal Error Allowed memory size experience
Fatal Error Allowed memory size bytes exhausted WordPress, this terrible experience I have received some days ago, while I am setting a new blog, while I wanted to install a plugin.
At first I was very surprised because I have never had this fatal error allowed memory message whenever I use my dashboard in my hosting, either JustHost or HostGator.
I am not sure if you have ever seen this message, but in case, you will see it one day, you will not be surprised, just like I was.
The fatal error allowed memory message will look like this following:
Fatal error: Allowed memory size of 33736432 bytes exhausted (tried to allocate 79384 bytes) in /home/yourname/public_html/wp-includes/pluggable.php on line 342
The notifications would not look all the same with the above lines, but it will look more and less the same. (related entries, 404 not found page, locked out of wordpress, missing temporary folder)
Fatal Error Allowed memory size bytes exhausted — The cause?
There are so many reasons why this Fatal Error Allowed memory size bytes exhausted thing can happen in your blog as I also personally experienced myself as mentioned in the first paragraph above.
But basically is because some of PHP made scripts in your blog eats so much memory in your web hosting that the PHP memory is not enough anymore.
What are this PHP scripts in my blog? Plugins and theme. Especially the plugins. There are so many plugins that can eat up the memory resources, and this can make this Fatal Error Allowed memory size bytes exhausted error message appear.
There are many ways how to fix it in the following simple steps below, but first of all, I suggest you not to be panic.
Well, I was also a bit confused and “angry” because I am really not a person who can “wait” by nature. However thankfully, I fixed it in a few minutes after doing Google search.
This is why I want to share what I did if in case, one day or sometime soon, you will have similar problems, although I don’t hope so.
But we are using wordpress 🙂 a few problems will come and we have to fix it, although it needs patience and a whole of nerves sometimes.
I really hope nothing will happen with your blog that related with this issue, but none can know. Better be prepared than be panic.
Fatal Error Allowed memory size bytes exhausted WordPress — How to fix it?
First of all, I wanted to disable my plugins, but I thought, those are very important plugins, and I want to use them all.
I use those plugins in all of blogs, and so far, they work well with my blogs, without any single errors a bit.
The host was VPS, and of course it was new for me, because so far, I am using shared hostings. I planned to move this blog to VPS once I am ready and familiar with VPS.
So before I contacted my customer support, I googled a solution, and found this wordpress forum thread.
I have only tried one method, which is inserting this line of code in my wp-config.php
define('WP_MEMORY_LIMIT', '64M');
Here is the screenshot in wp-config.php where I inserted the code, in case you want to know in which line.. (we are non-savvy wp users!)
And result..viola, Fatal Error Allowed memory size bytes exhausted WordPress error is gone, I hope this post will make you prepared!
This is a good option off course to do. However some of the providers have limited this to 32MB. In that case you might have a problem that they shut you down.
So another option would be to check and see if you can de-activate some plugins to see if the error is gone.
Hi Behrad,
Yeah, but my case was, I have all plugins that are used in this blog too, and they are working well in this blog’s host.
But in my VPS it did not work, so the php code in wp.config helped..
Thanks!
You are awesome. I was trying to add a link on my menu for a client’s website and it kept giving me that error. I took your advice and the fix worked. Thank you, thank you! Now, I am going to de-activate some more plugins.