How To Quick Fix WordPress Memory Exhausted Error.
Sometimes when you are perform normal WordPress action like activating a plugin, you get an error message like this
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes)
If you installing the resource more consuming plugins like WooCommerce, you will get this Memory Exhausted errors.
The solution is to increase the PHP memory to resolve it.
Fix this error via wp-config.php
Step 1 – Login to your cPanel >> File manager >> choose the directory, there you can have the file as wp-config.php
Step 2 – Do edit the wordpress config file and enter the below code to increase the PHP memory limit.
Fix this error via php.ini
Step 1 – If already you have php.ini file under the directory, Do edit the php.ini file and enter the below code to increase the PHP memory limit. Else create the file then enter the below code.
Fix this error via .htaccess
Step 1 – Also you can use your .htaccess file and edit the enter below command to set the memory limit.
php_value memory_limit 128M<br>