Not every memory bump method works on every server. Here are four ways to increase PHP’s memory allocation:
1. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
2. If you don't have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M
3. Try adding this line to your wp-config.php file:
Increasing memory allocated to PHP
define('WP_MEMORY_LIMIT', '64M');
4. Talk to your host.
Thread Starter
KerriM
(@kerrim)
MacManX, I understand the different methods of increasing memory limit. I am on a VPS server and have tried increasing the memory limit to a ridiculous amount (128M) (as verified by phpinfo()), and the error persists. I don’t believe this plugin should be consuming that much memory, so I am concerned that there is an issue with the plugin itself (as there was in a previous version).
Thread Starter
KerriM
(@kerrim)
Okay, I just discovered that this is not an issue solely tied to this plugin (it only started showing up when I installed the plugin, so that was my original assumption).
I am now getting this error on another dashboard widget (but only when I’m not logged in as Admin, and even after I uninstall the Analyticator), so there is something else causing this.
FIrst off, your error message indicates your memory limit is only 32MB. If that’s the same error message you get after increasing the memory, your increased limit isn’t taking.
From there, I would just do what you’re doing with disabling plugins. There is probably a combination of plugins that aren’t working well together. To help figure this out, look for a memory plugin that can help by displaying memory usage on pages. Enable and disable plugins and see the different effects.