Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Fatal error: Allowed memory size - After the site running fine for 2 weeks


Reply

4 Posts   2552 Views

Avatar
Blueskybeach

28 October 2007 at 5:08am (Last edited: 28 October 2007 5:09am), 11 Posts

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.

Avatar
Sean

28 October 2007 at 10:04am Forum Moderator, 921 Posts

Try adding this to sapphire/main.php:

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

Cheers,
Sean

Avatar
Blueskybeach

28 October 2007 at 2:50pm 11 Posts

You beauty...!

It worked - thanks dude.

All the best.

Avatar
Sean

28 October 2007 at 5:50pm Forum Moderator, 921 Posts

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