Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Fatal error: Allowed memory size - After the site running fine for 2 weeks

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: 2540 Views
  • Blueskybeach
    Avatar
    11 Posts

    Fatal error: Allowed memory size - After the site running fine for 2 weeks Link to this post

    Hi,

    I got the following error after the site functioning fine for two weeks. As we were adding more and more content into the site (while I set the home page to a 'holding page' so the public got a site maintenance notice - i.e. no major traffic...)

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 140 bytes) in .../public_html/stonmii/forum/code/CheckableOption.php on line 3

    Now I have been searching the forums like crazy to try and find a solution and since I've not come across anything that helps - could someone please help me?

    The irony is - it's a site for my Mum - I'm putting together a consumer advocacy site. She's been inputting most of the data as it's her site; while I've been doing the page designs. She texted me this morning saying she can't login and there is some error (above)...

    Although I must say that she did find it very easy to use - when it was working...

    The site needs to launch Sunday night (tomorrow night) and there is tons of work still needed to be done.

    Any ideas welcome thanks.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal error: Allowed memory size - After the site running fine for 2 weeks Link to this post

    Try adding this to sapphire/main.php:

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

    Cheers,
    Sean

  • Blueskybeach
    Avatar
    11 Posts

    Re: Fatal error: Allowed memory size - After the site running fine for 2 weeks Link to this post

    You beauty...!

    It worked - thanks dude.

    All the best.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal error: Allowed memory size - After the site running fine for 2 weeks Link to this post

    It's possible the host changed the PHP memory limit during the course of you have the site running.

    I'm glad it worked.

    Cheers,
    Sean

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