• Go to public_html folder in your cpanel.
  • then find wp-includes folder

  • find a file named default-constants.php
  • edit the file using code editor
  • Find the following code

// set memory limits
if ( !defined(‘WP_MEMORY_LIMIT’) ) {
if( is_multisite() ) {
define(‘WP_MEMORY_LIMIT’, ’64M’);
} else {
define(‘WP_MEMORY_LIMIT’, ’40M’);
}
}

 

  • go to line number 23 that says

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

and change it to

 

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

 

thats it & done ………