WordPress Allowed Memory Exhausted Error – Increase PHP Memory Limit
An allowed memory size exhausted error in WordPress?
Increase PHP Memory Limit, When we install some WordPress plugins, we can able to install them successfully and can be activated instantly.
When install some WordPress plugins are you seeing an allowed memory size exhausted error in WordPress? This is one of the most common error which occurs during or after plugin installation.
We can fix this error easily by increasing the PHP memory limit in your wordpress application. We will show you how to fix this wordpress allowed memory size exhausted error by increasing PHP memory limit.
What is wordpress memory exhausted error?
Wordpress is written in PHP, which is a server-side programming language. Every website needs a hosting server for hosting website source files and to execute them properly.
Web servers are just like a computer, they need sufficient memory to run multiple applications at the same time. Usually servers are come up with default configuration with specific memory size limit for different applications including PHP.
When your WordPress application requires more than allocated memory size then you see an error in the browser screen like allocated memory size exhausted.
Having said that, let’s see how to easily increase PHP memory limit in WordPress to avoid memory exhausted error.
Increase PHP memory limit in WordPress First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to copy the below code and paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.
define( 'WP_MEMORY_LIMIT', '1024M' );
This code tells WordPress to increase the PHP memory limit to 1024MB.
Once you are done, you need to save your changes and upload your wp-config.php file back to your server. You can now visit your WordPress site and memory exhausted error should disappear now.