Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Allowed memory size exhausted

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1717 Views
  • StarsandStripes
    Avatar
    Community Member
    4 Posts

    Allowed memory size exhausted Link to this post

    Hi! I've checked the forums and increased the memory to 64M using a PHP.INI-file in the same directory as config.php. But then I got stuck with the message below.

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in /silverstripehome/cms/code/Newsletter/NewsletterType.php on line 75

    I tried to store a PHP.INI in the Newsletter directory, but that just doesn't cut it.
    Any clues?

  • saimo
    Avatar
    Community Member
    67 Posts

    Re: Allowed memory size exhausted Link to this post

    8388608 bytes == 8Mb which means that your memory setting isn't working. The normal way of setting this is in your .htaccess file. Add the following line to the top of the file:

    php_value memory_limit 128M

    to set it to 128Mb. If that doesn't work you may try to set it in sapphire/main.php but I don't remember the function name to set it using php. Search php.net.

    1717 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.