Jump to:

23553 Posts in 19380 Topics by 2892 members

General Questions

SilverStripe Forums » General Questions » Memory Run Out

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: 1384 Views
  • dalboy
    Avatar
    Community Member
    2 Posts

    Memory Run Out Link to this post

    I know there are heaps of comments on this subject already. I simply tried to add a redirect subpage to my site. So it was the 3rd page in the branch so to speak. Since then I've got this error

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4864 bytes) in /var/www/virtual/taupobaptist.org.nz/htdocs/sapphire/core/Object.php(123) : eval()'d code on line 1

    And cannot access any of the subpages online, but I can still change them when signed in through the Admin area (except the inital redirect page). I've tired adding the line

    ini_set('memory_limit','64M');

    to some fo the php files and no effect.......does anyone know the solution and put it easily for a non-computer person???

    i tried juist deleting the extra page I added but again - still no effect.

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: Memory Run Out Link to this post

    Hi

    have you found where was a problem? I have the same problem too....

  • OwenW
    Avatar
    Community Member
    45 Posts

    Re: Memory Run Out Link to this post

    Hery Dalboy,

    It looks like the memory limit configuration you are hitting is from the php.ini setting. The current limit that you are bouncing off is 128MB, so while attempting to force the ini_set to 64M is valid, its still lower than the core configuration.

    You can raise the memory setting in php.ini bu finding the following line;

    memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)

    and changing it to

    memory_limit = 196M ; Maximum amount of memory a script may consume (196MB)

    You are only attempting to allocate another 4k of memory to the process, so you should not need to raise the limit too much.

    Depending on the OS you are running, php.ini will be in /etc/php (RHEL) or /etc/php5 (Debian).

    Cheers
    Owen

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: Memory Run Out Link to this post

    Thanks for your answers. It seems that my server provider (heartinternet.co.uk) has special settings for php - this is line in .htaccess regarding memory limit:

    RLimitMem 128000000

    Hope this info will be useful for somebody

    Now it is working everything. I love this CMS!

    1384 Views
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.