WordPress memory exhausted error is a common error which every WordPress beginner may have faced. This is not such a big problem, but a small one which can be fixed within minutes. There will be some default amount of memory allocated to the various sections in your web hosting account. The WordPress too have such limitations in the PHP files. Once we exhausted the allowed memory limit, it will show an error like below one
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx
That is what you have faced now. This error normally occurs during the over plugin installation on the WordPress. Each and every plugin uses some amount of memory. When we installed a plugin which is at the point crossed the allowed memory limit, WordPress can’t overuse the memory than the set value. So, it shows the error. We can fix this by editing a wp-config.php which is located in the root WordPress directory in your hosting account.
To fix this, you must follow the steps below. If you carefully follow us, you will definitely find WordPress memory exhausted error Fix by increasing the PHP memory limit.
How to Increase PHP Memory Limit?
- Login to your Hosting account (Most Probably CPanel).
- Access the Web disk.
- Navigate to the root WordPress directory.
- Open wp-config.php which is located in the root WordPress directory.
- Add the following line inside the main PHP tag.
Now, you have increased the memory limit to 64M. Now check the WordPress again. If the problem still exists, contact your hosting provider and they will definitely help you with this issue.