Fatal Error: Memory Exhausted Error:
Most of the open source software like WordPress, Joomla etc.. facing this php “Fatal Error: Memory Exhausted Error”. Increasing the memory limit is the first solution to this error. The memory_limit can be changed through the php.ini file in the public_html folder in your hosting account.
Follow these Steps to increase the default Memory limit through php.ini file
Step 1: Login cPanel account and open the File manager from the files section.
Step 2: Navigate the root directory/public_html and you can see the available file and folders.
Step 3: Select the php.ini file and edit the php.ini file, you can use either right-click or use the Edit option shown in the menu bar.
Step 4: A new pop-up will appears to confirm that you want to edit the file by clicking on the Edit button.
Step 5: A new tab will open in your browser and find the memory_limit with help of search option(ctrl+f) and change the default memory limit and click the save the change button.
Example: Try to increase the memory_limit value to 512M
After changing the memory limit run your website if no errors occur again, congrats you have successfully fixed the issue.
We hope that this article will help you to fix the memory Exhausted error. For more information, follow us on the social media of Facebook and Twitter.