Though WordPress is very memory savvy, sometimes the plugins can make the assigned memory run out. In such cases, you can use the following methods to increase WordPress’s Memory Limit.
1. For Novice Users
The simplest way to increase the PHP Memory Limit is to ask your Hosting Provider to do it for you.
2. For Advanced Users
Developers, website designers, the experimentalist can use any of the following methods to increase the PHP Memory Limit.
2.1 Edit your wp-config.php file
Add this line to the top of the file, after the line that says, “<?php” in the wp-config.php file.
2.2 Edit php.ini file
If you have access to the php.ini file which can be easily found in the server file manager, change/add the following line in php.ini
If your line shows 32M try 128M:
memory_limit = 512M ;
If you do not have access to php.ini file then you can add your own .user.ini file in the websites directory and add the code mentioned above into it. This is often considered safer since it does not affect the settings in phi.ini file.
2.3 Edit your .htaccess file
If you don’t have access to your php.ini file then add the following line to your .htaccess file.
php_value memory_limit 512M