WordPress Memory Exhausted Error

Posted on December 30, 2018 by Destry Hines

What Causes the WordPress Memory Exhausted Error?

WordPress was written using a programming language called PHP (PHP: Hypertext Preprocessor), which has been used to build most of the websites on the Internet.

WordPress will start you out with 64MB of RAM, but that will not be enough when you add some plugins or themes. When WordPress tries to allocate more memory than it has available, you'll get an error like the one below:

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 ###


How to Fix it?

You can fix the error by increasing the PHP memory limit in WordPress. 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' );

If you have a web developer that has been working on your site, they should be able to fix the problem for you.

If you want to fix the problem yourself, you'll need to use an FTP client or file manager in your website hosting control panel.

Posted in WordPress