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   2591 Views

Avatar
Blueskybeach

11 Posts

28 October 2007 at 5:08am

Edited: 28/10/2007 5:09am

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

Forum Moderator, 922 Posts

28 October 2007 at 10:04am

Try adding this to sapphire/main.php:

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

Cheers,
Sean

Avatar
Blueskybeach

11 Posts

28 October 2007 at 2:50pm

You beauty...!

It worked - thanks dude.

All the best.

Avatar
Sean

Forum Moderator, 922 Posts

28 October 2007 at 5:50pm

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