WordPress Memory Exhausted Error – Increase PHP Memory
Introduction
One of the common problems that WordPress users face when installing or updating a plugin is the ” Memory Limit ” error. The error, in general show up as “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7896 bytes) in ….” The reason why you get this error is that your site uses the memory setted by default.
Note: You can see the tutorial video at the end of the article.
What Is The WordPress " Memory Exhausted " Error?
As you already might know that every websites need a wordpress hosting server to work properly. Web servers are just like a computer. They need memory to be able to run many applications properly at the same time. So, hosting providers allocate memory to different applications, including PHP.
When the default memory limit is exceeded, you’ll get the following error that you see in visual 1.
Visual 1
How to increase the PHP memory limit in WordPress?
What you need to do to resolve this issue is to make an edition in the wp-config.php file, where you can access via FTP protocal or in your WordPress Panel from Appearance > Theme Editor
Once you get access to the wp-config.php file using any of the way above, you should make sure to insert the following snippet anywhere in the wp-config.php file and make sure you saved it.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
Important: If the above methods not resolve the memory error, contact your hosting providers and request an increase in the default php memory limit.
Video Tutorial
If you have any questions about this article or other topics, please click the button below. Your questions will be answered soon.
If you want an affordable, reliable and fast WordPress server, just go ahead and click on the button and get a package as needed.
Related Posts
How to Install WordPress Theme Manually with XML?
Oct 12, 2023How to Fix Error Too Many Redirects in WordPress
Jun 23, 2023
Envato elements
Blog Categories
- Agriculture 1
- Design 3
- eCommerce 13
- Energy 1
- Extras 75
- Free 4
- Grocery Store 3
- Software 1
- Technology 3
- Themes 78
- WordPress 145
- Plugins 58
- Cache 5
- Security 8
- SEO 10
- Spam 5
- User Managament 10
- WooCommerce 6
- Plugins 58
- WordPress Speed 2
- WordPress Tutorials 55