How To Fix WordPress Fatal Error : Memory Exhausted Error?
September 17th, 2016 | by Ravi Chahar || 4 Comments |
Are you getting WordPress fatal error showing that allowed memory size exhausted? To fix memory exhausted error, you have to increase the default memory limit.
There are many common errors in WordPress but fatal error can be more annoying. It’s because when you open your website then you will see an error showing the memory exhaustion.
It may occur due to any plugin which needs more memory to work properly. Though you don’t need to worry about that.
Just take the necessary steps to remove memory exhausted error from your WordPress website.
Remove Memory Exhausted Error Using cPanel.
There is one line of the code which would increase the default memory limit. You have to edit the wp-config.php file.
Do you know where is that file located?
Let me guide you.
Step 1:- Login to your cPanel and open the file manager from the “files” section.
Step 2:- All the WordPres files and the folders will be present from which you have to search the wp-config.php file. Right-click on the file to edit.
Step 3:- Place the code in the file and save.
The main thing is that you should add the code to exceed the default memory limit more than 16M. You can use the 32M but in some cases, it doesn’t work.
So, it would be better to choose the 64M value. Now you can check your website. If you don’t get an error then congrats, your problem is solved.
Though in most of the cases the memory exhausted error gets solved after increasing the memory limit. The final solution is that you have to talk to your web hosting customer support.
Isn’t That Easy to Fix Memory Exhausted Error?
WordPress is a platform which is easy to handle and you can solve the problems with a few codes. The errors like 404 error, HTTP error, etc can also be solved.
The WordPress fatal error for the exhaustion of the memory isn’t so common. But still, if get it on your website then use the above-mentioned code.
You all know that getting an error on your website is really irritating. It’s always important to fix the errors as soon as possible. Provide an error free website to your readers.