Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)

Hi, 

I am getting the following error in the  Wordpress. I have just updated some plugins and after those updates, I am getting this error: 
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)

Can someone tell me, how to solve this problem urgently? 

Thanks...

Asked 27 Jun, 17 at 05:16 AM

Amisha Sharma
Php Wordpress

Answer

WordPress overrides PHP's memory limit to 256M, with the assumption that whatever it was set to before is going to be too low to render the dashboard. You can override this by defining WP_MAX_MEMORY_LIMIT in wp-config.php:

define( 'WP_MAX_MEMORY_LIMIT' , '512M' );

This code is working fine for me, hope this will help you.

like