WP_MEMORY_LIMIT

If adding

define('WP_MEMORY_LIMIT', '256M');

in /wp-config.php doesn’t help, edit the limit in /wp-includes/default-constants.php instead:

if ( !defined('WP_MEMORY_LIMIT') ) {
  if( is_multisite() ) {
    define('WP_MEMORY_LIMIT', '64M');
  } else {
    define('WP_MEMORY_LIMIT', '256M');
  }
}

No more Fatal error: Allowed memory size of 33554432 bytes exhausted …

This entry was posted in Stream.

Comments are closed.