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.
But if still see that error and not able to login to your WordPress admin panel then try to deactivate all WordPress plugins from the cPanel.
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.
Most of the people get frustrated with fatal errors that come along in their blogging journey. They try to fix it, browsing everywhere in SE. But land up without anything. Even the guides to fix such errors are written in very complicated ways….
Amazingly, you have jotted down in very simple manner and which is very effective too….
I really like the way you deal with simple problem….
Thanks for making us literate every time….
Great day ahead
You are totally right. When you search for the solutions and land up as a complicated guide. That’s even more frustrating than getting an error.
These type of simple problems can be solved with the simple codes but people get scared when they notice something unusual on their website. They need to figure out the best and easy way.
Thanks for taking the time to have a glance.
Have a great weekend.
By default, WordPress has a modest limit for uploading images, videos, and other files. It’s a similar story for your PHP memory limit, which helps you run plugins and scripts.
If you run a robust site full of rich content, this could be a big problem for you when those limits are reached. You may receive an upload error One of the most common and frustrating errors encountered by PHP coders reads.It can be a bit tricky to fix sometimes depending on your server setup.If you need to upload large files only once, you could also upload your files via FTP to avoid this problem altogether. Thanks for sharing your worthy thought with us.
With best regards,
The memory exhaustion error can be seen due to any poorly coded plugin or as you have mentioned about the concept of large files. It depends the website and the coding.
When you have a bigger site then it is possible that the default memory limit isn’t enough. So, you have to exceed it.
Thanks for stopping by.
Enjoy the weekend.