1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal error: Allowed memory size of 33554432 bytes exhausted

Discussion in 'Blogging' started by sagarrai000, Nov 13, 2012.

  1. sagarrai000

    sagarrai000 Newbie

    Joined:
    Dec 11, 2009
    Messages:
    48
    Likes Received:
    7
    Occupation:
    Sr Authority Website Developer
    Location:
    Home
    ‎[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.
     
  2. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    Most probably one of your loops gets wrong. Can you post the source code?
     
  3. BHopkins

    BHopkins Moderator Staff Member Moderator Jr. VIP

    Joined:
    Dec 31, 2010
    Messages:
    2,311
    Likes Received:
    1,387
    Gender:
    Male
    Occupation:
    ORM and SEO company owner
    Location:
    California
    Home Page:
    Are you on a VPS/Dedi/shared? Email your host and tell them the problem. Can you activate the plugins one by one?
     
  4. rutix

    rutix Junior Member

    Joined:
    Sep 6, 2012
    Messages:
    102
    Likes Received:
    12
    try adding more memory
    define('WP_MEMORY_LIMIT', '256M');
     
  5. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    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.