Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » HELP!! Fatal error: Allowed memory size of 33554432 bytes 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: 3225 Views
  • aiekon
    Avatar
    7 Posts

    HELP!! Fatal error: Allowed memory size of 33554432 bytes exhausted... Link to this post

    Hello everyone,

    I've read the forums on this fatal error and tried putting ini_set('memory_limit', '64M'); in sapphire/main.php but my site still says:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 232 bytes)...

    I've even tried increasing the memory_limit in php.ini to 64M but it's still not solving this problem!

    Everything was working fine for the past few weeks and now it's saying this! Is there anything I can do to fix this??? This site was JUST launched publicly a few days ago so a lot of people are now coming to the site and seeing this.

    What can I do?? Thanks..

  • aiekon
    Avatar
    7 Posts

    Re: HELP!! Fatal error: Allowed memory size of 33554432 bytes exhausted... Link to this post

    Ok, I may have fixed this the wrong way, but i included:

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

    within sapphire/_config.php

    As soon as I did that it worked.

  • Wojtek
    Avatar
    Community Member
    149 Posts

    Re: HELP!! Fatal error: Allowed memory size of 33554432 bytes exhausted... Link to this post

    If you have access to the .htaccess file, try adding

    php_value memory_limit 64M

    (or even more) to it. If you don't have, try searching

    ini_set('memory_limit',

    in all your silverstripe files and replace all values to the correct ones ;) try also adding ini_set('memory_limit', '64M'); to your mysite/_config.php file

    cheers,
    Wojtek

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