How To Fix Memory Exhausted Error in WordPress – Increase PHP Memory

Michael Oldborn

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.

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
Memory Exhausted Error in WordPress
No need to worry at all, as we’ll tell you how to increase the php memory limit. With a few simple process, you can increase the memory limit and get rid of this error.

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.

fix wordpress memory exhausted error
Why is WordPress Security Important

If you have any questions about this article or other topics, please click the button below. Your questions will be answered soon.

Quality And Fast Hosting

If you want an affordable, reliable and fast WordPress server, just go ahead and click on the button and get a package as needed.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.