1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fatal error: Allowed memory size of 33554432 bytes exhausted

Discussion in 'PHP' started by procrastinator, Mar 28, 2007.

  1. VisibleGhost

    VisibleGhost Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    That may be an issue in some of my code but had nothing to do with the specific issue at hand. As stated in my posts, everything was working fine until the upgrade then it quit working. No code was changed during this time, thus leaving that out as a variable. Again as stated above, barring any other circumstances, my fix was done by re-building apache. Once that was done everything worked fine.
    SEMrush
     
    VisibleGhost, Aug 6, 2010 IP
    SEMrush
  2. mriso

    mriso Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    yeah, well remembered Kaizoku

    unset($your_var)
    PHP:
     
    mriso, Aug 6, 2010 IP
  3. only4engg

    only4engg Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1141872 bytes) in /home/only4dpq/public_html/wp-admin/includes/admin.php on line 40

    how can i resolve this one my website is opening properly but some plugin problems are occuring
     
    only4engg, Sep 29, 2010 IP
  4. mriso

    mriso Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    This probably occurs when you´re adding values to a variable in a loop that is nested inside other loop, and these values are already big.

    This happened to me before. Check your loops.

    
    
    while($i<1500)
    {
         $x = $x + $var;   // or   $x += $var;
    
         $i++;
    }
    
    
    PHP:
    You could solve this by removing the incremental or adding $x = 0 at the beguining of the first loop.
     
    mriso, Sep 29, 2010 IP
  5. mamoo

    mamoo Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #25
    hi,
    i am also getting the error

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes) in /home/xxxxx/public_html/xxxxx/admin/system/classmysql.inc.php on line 0

    I create php.ini and set memory_limit = 64 M and upload it at folder where script is located but nothing happen.
    what else should i do??

    thanks
     
    mamoo, Jan 9, 2011 IP