Skip to content

Memory Size Exhausted: How to Fix It If It Happens to You

Memory_Exhausted_Error

Table of Contents

What is the allowed Memory Size Exhausted error. Often you probably know this. This is a very common error in the WordPress. This is because the Memory Limit ending in WordPress. I point out how to overcome this error in this article.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx

 

WordPress is written PHP SERVER SIDE PROGRAMING LANGUAGE. The WordPress Server, which contains the WordPress, needs memory. Like a computer. This memory is reserved by Server Administrator for various purposes. In some cases, they need to gather more than the memory of the memory This error will arise you at those times. So PHP Memory should be increased to the required size. How do we do this?

How to increase PHP memory size in WordPress.

Here first you have to make some changes in the wp-config.php file. This is located in the root folder of your server. After you open wp-config.php, enter the following code before the line ‘That’s all, stop editing Happy blogging.’

 

define( 'WP_MEMORY_LIMIT', '256M' );

 

But as I always say it is very important to keep a copy of wp-config.php before you make any changes. That way, if you make any mistake, you will be able to solve the problem using the backup file. This will probably get rid of your memory exhausted error. It happens by increasing the memory limit of WordPress to 256mb by adding the above code. After editing, save the file. That’s it.

Some service providers may not allow you to increase the memory in this way. In such a case you have to request them to increase your memory limit.

Conclusion.

This document explains the “Allowed Memory Size Exhausted” error that can occur in WordPress due to the memory limit ending. It provides a solution by increasing the PHP memory size in WordPress through modifying the wp-config.php file. However, some service providers may not allow this and may require a request to increase the memory limit.

Facebook
Twitter
LinkedIn
Reddit
WhatsApp

AI Tools at Your Fingertips

Latest Posts

Deals For You