Problem with WordPress Plugin Activation

If you’re running a number of memory hungry plugins, you might exceed the 32mb worth of memory allotted by the standard WordPress install. I’ve used an e-commerce solution plugin before that used significantly more memory than the others.

So, if you try to activate a WordPress plugin, but can’t, due to a memory allocation problem, you can either modify the wp-settings.php script, or, if that has no effect, increase the ‘memory_limit’ variable in the php .ini file. If you can access the php .ini file yourself, great, if not, contact your host.

To change the wp-settings.php file, open it up and locate the following lines:


if ( !defined('WP_MEMORY_LIMIT') )
define('WP_MEMORY_LIMIT', '32M');

Now change ’32MB’ to ’64MB’, so it reads:


if ( !defined('WP_MEMORY_LIMIT') )
define('WP_MEMORY_LIMIT', '64M');

Again, if this doesn’t and you can’t change the php .ini file yourself, contact your host. Incidentally, if you’d like to see your ‘memory_limit’ allocation, pop the following code into a php web page and upload it to the server:


<? php echo phpinfo(); ?>

Tags: , , ,

Leave a Reply