How to Fix WordPress Memory Exhausted Error – Increase Memory Limit

When your WordPress code requires more memory than the default allocated memory, you see this error.

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


By default, WordPress automatically tries to increase the PHP memory limit if it is less than 64 MB, however, 64 MB is not often enough

After doing so, we see how to easily increase the PHP Memory Limit to avoid memory fatigue error in WordPress.


Increase PHP Memory Limit in WordPress

First you have to edit the wp-config.php file on your WordPress site. It is located in the root folder of your WordPress site, and you must use an FTP client or file manager in your web hosting control panel.

After this, you need to paste this code into the wp-config.php file that 'this is all, stop editing! Happy blogging '

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

How to put code in wp-config.php , here are few screenshots :- 



Comments