Fatal error: Allowed memory size of 33554432 bytes exhausted

sagarrai000

Newbie
Joined
Dec 11, 2009
Messages
48
Reaction score
7
‎[Wordpress Issue] I'm trying to activate around 10 plugins but it says

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home/xxxxx/public_html/wp-includes/plugin.php on line 561

How can I increase the memory?

I tried with define('WP_MEMORY_LIMIT', '128M'); on wp-config but no luck.
 
Most probably one of your loops gets wrong. Can you post the source code?
 
Are you on a VPS/Dedi/shared? Email your host and tell them the problem. Can you activate the plugins one by one?
 
try adding more memory
define('WP_MEMORY_LIMIT', '256M');
 
By the way, if you want to increase your memory, do
Code:
$ret = [URL="http://www.php.net/ini_set"][COLOR=#990000]ini_set[/COLOR][/URL][COLOR=#009900]([/COLOR][COLOR=#0000FF]'memory_limit'[/COLOR][COLOR=#339933],[/COLOR] [COLOR=#0000FF]'128M'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];

[/COLOR]

if $ret is false, then you can't do that by PHP , else it would return the previous value.
 
Back
Top