Fix WordPress Memory Exhausted Error by Increasing PHP Memory
Does a memory size exhausted error in WordPress keep popping up on your screen? Does it annoy you to the extent that you need to get it fixed immediately? Look no further, we are here to ease your misery, by guiding you to fix WordPress memory exhausted error by increasing PHP memory. Since it’s a very common and frequently occurring error, its solution is quite simple to follow, so let’s waste no time and get started.
What is the reason behind Memory Exhausted Error?
To give you a better insight on this problem, we’ll tell you the basics first. The programming language used to develop WordPress is a server-side PHP. For websites to run smoothly and correctly, a WordPress hosting server is a necessity. In order for a web server to perform functions like running several applications simultaneously, it needs a memory. Particular memory sizes are allotted to various applications by server administrators.
The following error is displayed, when your WordPress default allotted memory runs out:
It’s in the WordPress default mechanism to try to increase the PHP memory limit, it lies below 64 MB, but sometimes that amount of memory is not enough. So let’s take you through the process of increasing PHP memory limit in WordPress.
How to Increase PHP Memory Limit in WordPress?
Follow these simple steps to increase the PHP memory limit:
define( 'WP_MEMORY_LIMIT', '256M' );
The 256M written indicates that the memory limit is increased to 256MB.
Note: If the error doesn’t disappear, then your web hosting service provider hasn’t given you the authority to alter the PHP memory limit. In that case contact your service provider, and ask them to manually change the memory limit on their end.
We sincerely hope that our solution for WordPress memory exhausted error by increasing PHP memory limit worked for you.
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***