15Jul

WordPress fix Fatal error: Allowed memory size of x bytes exhausted

New install, a not so great server, when I copy my WordPress install and activate a few plugins Boum! broken. The classic “Fatal error: Allowed memory size of x bytes exhausted”. Here is how to fix it.

How to fix Fatal error: Allowed memory size of x bytes exhausted in WordPress

Open wp-config.php at the root of your WordPress install and before the “stop editing lines” add either only the max memory or both lines. You can set a lower values at 256M for instance.

define( 'WP_MAX_MEMORY_LIMIT' , '512M' );
define( 'WP_MEMORY_LIMIT' , '512M' );

I will use this as a memo for myself in the future as I bet it will happen again.

 

Subscribe
Notify of

0 Comments
Inline Feedbacks
View all comments