One of my WordPress sites is giving out this error lately and that got me quite a headache. This happen when I click “Plugins” in Admin Dashboard.
A support email sent to my web host got me nowhere. They asked me to show them how to reproduce the error but I can’t give them access to my site’s admin, can I?
A little search later brought me to the WordPress site that showed what need to be done:
Increasing memory allocated to PHP
Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP.This setting may be necessary in the event you receive a message such as "Allowed memory size of xxxxxx bytes exhausted".
This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.Please note, this setting may not work if your host does not allow for increasing the PHP memory limit--in that event, contact your host to increase the PHP memory limit.
Also, note that many hosts set the PHP limit at 8MB.
Increase PHP Memory to 64MB:
define('WP_MEMORY_LIMIT', '64M');
So the solution is pretty straight forward. Edit “wp-settings.php” and increase the PHP memory size in the DEFINE statement above.
I did exactly that and the error’s gone. Happy happy!
Recent comments