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.

Suggested Read:  How to Setup and Add Push Notifications in WordPress

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

*