@Hello.respond_to do |welcome|
  welcome.to_my_blog
end

Allowed memory size error in Silverstripe

Posted: June 19th, 2010 | Author: Ed | Filed under: Blog, Coding, PHP | Tags: , , | No Comments »

Silverstripe have made great improvements in the memory consumption in version 2.4 but the admin area can still get the frustrating error message.

Fatal error: Allowed memory size of 268435456 bytes exhausted

There are a few options to fix the issue:

  1. In mysite/_config.php – Add ini_set(“memory_limit“, “64M”)
  2. In .htaccess – Add php_value memory_limit 64M

Personally, I have found the 2nd option to be the best and most reliable throughout the website.

Some shared hosts lock down the options to increase memory limits so some digging around the support docs might be required if the above don’t work.



Leave a Reply