Fatal Error is one of the main problem for WordPress users.You need to increase your PHP memory limit for solve this WordPress problem.use below 5 tips to increase your PHP memory limit and solve the fatal error wordpress problem.
Fatal Error :Memory Size Exhausted’
Most likely you are receiving an error similar to: “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/mywebsitename/public_html/wp-admin/includes/template.php“. To fix this all you need to do is increase the WP_MEMORY_LIMIT in your WordPresswp-config.php file.
5 Tips To Increase
PHP Memory Limit In WordPress
WordPress Tips :
1.Increase WordPress’ Memory Limit
WordPress’ default memory limit is set at 32 megabytes. For some this may be enough, but if your site is running a lot of plugins or gets a substantial amount of traffic you’re going to want to increase this to a safer level.
Add this code to your wp-config.php and save it
//increase WP Memory Limit define('WP_MEMORY_LIMIT', '128M');
You may have to ask your host how to increase the memory limit if this doesn’t work and you’re on shared hosting. For those on a self hosting, you can increase the memory as long as it does not exceed the amount of RAM installed on the server.
2.Increase the limit via PHP.ini file
You can directly increase the PHP Memory Limit if you’ve access to the PHP.ini file. Most small Shared hosting servers won’t give you access to the PHP.ini file. But some servers allow you to create a duplicate PHP.ini in your respective site Directories whose data/values will override the default PHP.ini values.
To do that you just need to create a file with the name ‘php.ini’ in the directory where your WordPress site is installed. In that just add the command
memory_limit = 64M in it to increase the Memory Limit to 64 MB.
3.Monitor your WordPress Memory
If you work with WordPress a lot, you’ll probably encounter the need to increase the memory limit more than once. Additionally, there are several good plugins available that will help you monitor your server and WordPress installation.
4.Changing the Memory Limit via install.php
This method is just an Alternate to the php.ini method. Because the function of the code we use in this method is same as what we put in the php.ini file. You just need to place the code
ini_set('memory_limit','32M'); in the ‘install.php’ file which is placed in the wp-admin folder of your WordPress installation.
5.Contact Your Web Host
If you are a person who is new to all these techie sounding things. Then it’s better to have a Live Chat / a Call with your Host right away. It’s your right to talk to them & get the necessary changes you need as you’ve paid for it. So Many Hosting Services Offer Free WordPress Setup Also.
Expecting Above 5 WordPress Tips Are Helpful To You.Meet You In The Next Article.
Thanks For Reading,
Hope You Are Enjoyed Reading This Article”5 Tips To Increase PHP Memory Limit In WordPress Blog”.Please Drop Your Comments Below 🙂