PHP Fatal Error: Out of memory

There is four possible ways to solve this. Try adding this line to your wp-config.php file: define(‘WP_MEMORY_LIMIT’, ‘1024M’); If you have access to your PHP.ini file, change the line in PHP.ini memory_limit = 1024M ; Using htacess. php_value memory_limit 1024M if still not solve then Talk to your host.

Memory issue only in dashboard

(1) edit wp-settings.php [32M to 64M] (2) Try adding this line to your wp-config.php file: define(‘WP_MEMORY_LIMIT’, ’64M’); (you already have this, therefore ignore this step) (3) If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M: memory_limit = 64M ; Maximum amount of memory a … Read more

Adding define(‘WP_MEMORY_LIMIT’, ’64M’); by default?

The short answer is no. The long answer is “it is complicated”. The memory limit is there to protect you from malfunctioning code eating all your available memory, something that will make your site less responsive for a while. (I tried to explain the issues around this setting here) This setting will not matter if … Read more

How can I figure out where memory is being used?

I found it: it was a massive set of WordPress cron jobs that I had inadvertently accumulated. The technique I used was to keep removing things from the database in the clone that weren’t in the blank install, watching the memory in query monitor to see what dropped it.

tech