Fatal error: Allowed memory size of xxxxxxxx bytes exhausted in wordpress

If you are getting “Fatal error: Allowed memory size of xxxxxxxx bytes exhausted” error message in your wordpress then just increase php memory limit.

To increase PHP memory limit

1.Open your wp-config.php file.

2.Add below code in a new line

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

and save the changes
replace 64 with your required limit

Note :
1.This setting increases PHP Memory only for WordPress, not other applications.
2.This setting may not work if your host does not allow for increasing the wordpress PHP memory limit.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Also Read:  How to Improve WordPress Speed Using Performance Lab

Leave a Reply