I’ve seen this issue a lot of times on the WordPress forum.
A lot of people are getting the “memory exhausted” error, and then they try increasing the WordPress PHP memory limit, but without success.
This is how the error would look like:
Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 123742 bytes) in /home/example/public_html/wordpress/wp-admin/includes/dashboard.php on line 482
You’ve increased the PHP memory limit in WordPress, but you’re still getting the error
In almost all cases, this happens because your hosting provider won’t allow you to increase the PHP memory limit beyond a certain point.
For example, if they set the maximum amount to 64MB on the server’s end, and you try to increase it to 128MB, the change won’t take effect; you’re stuck with 64MB.
This mostly happens on Shared environments, so you’ll most likely have to upgrade your hosting package to Cloud, VPS or Dedicated.
Or you can make sure that your WordPress website is properly optimized, and you’re not using a lot of plugins (especially poorly developed ones), which are “chewing” on your resources. The fewer plugins you have, the better.
Before upgrading your package, I recommend reading the information provided by the hosting provider, or contact them to see what your options are.
That’s a wrap
I hope you found the post helpful.
If you have any questions, please drop a comment, contact us or message us on Facebook.
Don’t forget to share the post with your friends!