Sometimes you may have got an error like
“Fatal error: Allowed memory size of 34554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxxx/public_html/wp-includes/plugin.php on line xxx”
This error occurs because of exceeding the default WordPress memory limit. Also if you have a Blog with a high traffic and have installed lots of plugins, then its advisable to increase this memory limit.
Lets first increase the WordPress memory by editing a file named as “wp-config.php” (This file would be in the root of your WordPress installation)
Open this file and find this:
define(’WP_MEMORY_LIMIT’, ’32M’);
Now just change this 32 to 64. E.g.
define(’WP_MEMORY_LIMIT’, ’64M’);
You can even increase it further by 128MB, if you want.
Now lets increase the PHP memory limit. This is required if you have multiple Blogs, like WordPress Multi site or WordPress MU.
For this, your server must be running Linux operating system. Open this file: /etc/php.ini
and find this “memory_limit = “
Set it as per your WordPress memory limit, like we have set it to 64 MB in WordPress, then here also we will set it to 64. E.g. memory_limit = 64M
Thats done. This will prevent many problems from appearing.