Nikolay Shipilin - designer

Attention WordPress coders.


Attention WordPress coders.

if you encountered a memory size issue on your site (in my case it was in posts area) such as this one:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/username/public_html/wp-includes/meta.php on line 827

Try adding this snippet to your functions.php file

//add this to functions.php
function increase_memory_size() {
ini_set(‘memory_limit’, ‘2048M’);
add_action( ‘admin_init’, ‘increase_memory_size’, 1 );

That should help your server dedicate (if available) more memory for any given script in admin area…

Comments are closed.