PHP error

Discussion in 'PHP' started by dsimi, Mar 5, 2012.

  1. #1
    I got the error Out of memory (allocated 116654080) (tried to allocate 32 bytes) when i import a xml file into wp. I had set 20000M into php.ini How to remove this error and import xml success.
     
    dsimi, Mar 5, 2012 IP
  2. Co1dFusion

    Co1dFusion Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are probiblary "out of memory" Prehpas include a bit more detail
     
    Co1dFusion, Mar 6, 2012 IP
  3. imuneer

    imuneer Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The usual of 128M is enough to do almost anything. If you are getting this error, check for any infinite loops that can cause this or else, if you have 4 GB or 8 GB of ram, you are best to max out at around 1 GB for PHP.


    In my case, I would never do that, and stick with 128 MB, maybe move to 512 to see if that allows enough memory. if 512M doesn't allow your script to run, chances are the code is doing something funky and you have a loop that is never ending in there.
     
    imuneer, Mar 6, 2012 IP
  4. Moxie Technoxy

    Moxie Technoxy Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would check for an infinite loop. If you can't find anything, I'd up the memory.
     
    Moxie Technoxy, Mar 15, 2012 IP