Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Fatal error: Allowed memory

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1375 Views
  • wilsonStaff
    Community Member
    142 Posts

    Fatal error: Allowed memory Link to this post

    I got this error:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 13 bytes) in /home/urgence/public_html/ss/sapphire/core/Object.php on line 588

    How to solve that? I opened the .php file and nothing appears related on line 588


  • Willr
    Forum Moderator
    5508 Posts

    Re: Fatal error: Allowed memory Link to this post

    Well this just means you have run out of memory. You are either doing something that requires too much memory (like a massive GD operation) or you just don't have enough memory on your server.

    Easiest fix is to increase the memory limit on the server (if you can) to like 128M.

  • PapaBear
    Community Member
    26 Posts

    Re: Fatal error: Allowed memory Link to this post

    Piggybacking off this: WillR I have a site that is very graphic intensive. I am having a very similar error to this one with my Design Class. This class has only one image in it but I have extended the image class to allow for 4 different resizes for the image (used on different sub-pages).

    Iniitally in my tables I was including the thumbnail image but was getting this error. Now I get the error even when viewing a single instance of the class (As mentioned earlier this only has a single image in it).

    My site is set to allow PHP 128 megs of ram.

    Can you offer any suggestions for streamlining the memory usage? If necessary I can send through my classes for your reference.


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.