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: Out of memory (allocated 81264640)

Discussion in 'PHP' started by raamee, Aug 6, 2011.

  1. #1
    Fatal error: Out of memory (allocated 81264640) (tried to allocate 80 bytes) in /xxx/xxx/zzz/whmcs/includes/tcpdf.php on line 8106
     
    raamee, Aug 6, 2011 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    program needs more memory simple

    Regards

    Alex
     
    kmap, Aug 6, 2011 IP
  3. PHP Junior

    PHP Junior Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PHP memory limit ( you can change it by editing php.ini ).
     
    PHP Junior, Aug 6, 2011 IP
  4. raamee

    raamee Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    I increased memory. But still same. Like default was 128MB and I increased to 256MB and still same error .
     
    raamee, Aug 6, 2011 IP
  5. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #5
    If you are getting the same error, the same rule applies - you need to increase it further or fix your script to it doesnt require as much memory.

    If you are using simplexml, bear in mind it tries to load the document into memory before processing it; try an alternative method. 
     
    lukeg32, Aug 6, 2011 IP
  6. raamee

    raamee Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    Increased upto 1 GB.. Still not solution.
     
    raamee, Aug 7, 2011 IP
  7. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #7
    The fix your script, as I said previously. There is no need for it to take that much memory; The error isn't lieing to you, its telling you exactly what the problem is.

    If in doubt, throw in some error checking along the way, in case you have an infinite loop thats trying to read in data from somewhere (and check the size of whatever it is you are loading in also) 
     
    lukeg32, Aug 7, 2011 IP
  8. ModulesGarden

    ModulesGarden Active Member

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Is this your custom script or invoice in WHMCS? I know WHMCS very good and similar issues occurs when you are using big/too much images in tcpdf. Try to remove all images to see how it works.
     
    ModulesGarden, Aug 7, 2011 IP
  9. raamee

    raamee Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    Hello,

    Thanks to all. Yes, it was some script error. I reinstalled WHMCS and its working.
     
    raamee, Aug 7, 2011 IP
  10. ausrixy

    ausrixy Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #10
    yeah this can happen at times, sometimes a simple server reboot can help too.
     
    ausrixy, Aug 10, 2011 IP
  11. ZeroGamma

    ZeroGamma Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I hate this error. Sometimes it is perfectly truthful, and other times seems to appear with no particularly obvious reason - primarily when dealing with other people's code. Generally just a few optimisations of the code will resolve it.
     
    ZeroGamma, Aug 11, 2011 IP