How To Increase PHP Memory Limit In WordPress ?

You might have noticed common WordPress error sometimes while activating a new plugin or some other task:

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

This error shows up when you exceed your default Memory Limit. For fixing it up wp-config.php file and add the following line:

define(‘WP_MEMORY_LIMIT’, ’64M’);

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.