How To Fix WordPress Memory Exhausted Error By Increasing PHP Memory Limit
However, as time passes and you start pushing the limits by exploring WordPress to its core and finding out about handy WordPress features, you may encounter various errors that affect your day-to-day writing experience. Exhausted Error
Unless these errors are fixed immediately, it may be tough to have the kind of experience you always wanted. The WordPress memory exhausted error is a common issue that many site owners face whenever any WP code needs more memory than what is allocated to it by default.
Should you wish to offer an incredible experience to your audience, fix this error without further delay. In this guide, we’ll explain a step-by-step process to resolve WordPress memory exhausted errors by increasing the PHP memory limit.
Why Does WordPress Memory Exhausted Error Occur?
It’s a standard error usually hits any site when the allocated memory limit to a script or code falls short of the required memory to run it efficiently.
Site owners face this error whenever they have multiple applications, plugins, or theme files running on their blogs simultaneously. It’s just to let you know that you require more memory to process whatever is going on.
How To Fix WordPress Memory Exhausted Error?
You can resolve this error by following the procedure mentioned below. But before you do that, take a backup of your site to keep things in place just in case something goes wrong when making changes in your web server.
Log in to your web server using FTP. We are using FileZilla here for demonstration purposes.
Once you’re on its dashboard, go to the public_html folder.
In the public_html folder, look for the wp-config.php file.
You need to download the wp-config.php file on your system.
Go to the bottom of the page in the text editor and look for the “That’s all, stop editing! Happy blogging. */” line.
Once you locate it, write this code just above it “define(‘WP_MEMORY_LIMIT,’ ‘256M’);. “
Save this file and refresh the website.
WordPress is inarguably the most preferred content management system for users who want to write in a dedicated environment despite having little or no technical knowledge.
However, as time passes and you start pushing the limits by exploring WordPress to its core and finding out about handy WordPress features, you may encounter various errors that affect your day-to-day writing experience.
Unless these errors are fixed immediately, it may be tough to have the kind of experience you always wanted. The WordPress memory exhausted error is a common issue that many site owners face whenever any WP code needs more memory than what is allocated to it by default.
Should you wish to offer an incredible experience to your audience, fix this error without further delay. In this guide, we’ll explain a step-by-step process to resolve WordPress memory exhausted errors by increasing the PHP memory limit.
Why Does WordPress Memory Exhausted Error Occur?
It’s a standard error usually hits any site when the allocated memory limit to a script or code falls short of the required memory to run it efficiently.
Site owners face this error whenever they have multiple applications, plugins, or theme files running on their blogs simultaneously. It’s just to let you know that you require more memory to process whatever is going on.
How To Fix WordPress Memory Exhausted Error?
You can resolve this error by following the procedure mentioned below. But before you do that, take a backup of your site to keep things in place just in case something goes wrong when making changes in your web server.
Log in to your web server using FTP. We are using FileZilla here for demonstration purposes.
Once you’re on its dashboard, go to the public_html folder.
Get rid of memory exhausted error in WordPress
In the public_html folder, look for the wp-config.php file.
Edit the wp-config file
You need to download the wp-config.php file on your system.
Download the config file your computer
Go to the bottom of the page in the text editor and look for the “That’s all, stop editing! Happy blogging. */” line.
Look for this line in wp-config.php
Once you locate it, write this code just above it “define (‘WP_MEMORY_LIMIT,’ ‘256M’);. “
Add this line to increase memory
Save this file and refresh the website.
Upload the updated file
Typically, this trick will help you bring everything back to normal.
However, if you continue to get the memory exhausted error even after increasing PHP memory using the above method, contact your web hosting service provider immediately.
There are high chances that your web host has allocated a specific memory to your site, and you cannot go beyond that. In that case, either you need to increase the memory limit imposed by your web hosting company by upgrading your hosting plan or delete extra files causing this error.
Thank you so much for reading this guide. Don’t forget to comment below and share your experience with us. If you need help in maintaining and speed optimizing your website please contact us.