WordPress Memory Exhausted Error

Are you getting an allowed memory size exhausted error in WordPress that looks like this?

Fatal error: Allowed memory size of 23355472 bytes exhausted (tried to allocate 3348667 bytes) in /home/user/public_html/wp-includes/plugin.php on line ###

You can easily fix it by increasing the php memory limit in WordPress. I’ll show you how to fix the WordPress memory exhausted error by increasing PHP memory.

WordPress will start you out with 64MB of RAM, but that will quickly not be enough if you add some plugins or themes. To fix the error, edit the wp-config.php file, located in the root folder of your WordPress installation. Add the following line:

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

Leave a Reply

Your email address will not be published. Required fields are marked *

10 + twenty =