Featured Posts

Zend Cache Error - Silverstripe 2.4 admin After uploading a new site built on Silverstripe 2.4 to my shared host, the following error reared it's head when trying to access the admin area. [User Error] Uncaught Zend_Cache_Exception: cache_dir...

Read more

Allowed memory size error in Silverstripe 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...

Read more

MailChimp - Usability at its very best With it's funky post monkey mascot, the MailChimp website puts a smile on your face whenever you visit. Not only do MailChimp paint a pretty picture but their website and online service is one of the...

Read more

Web Development Frameworks After spending time with retro coded content management systems like Drupal, I started getting frustrated with developing.  I started reading about web development frameworks on blogs like Sitepoint &...

Read more

Drupal Add classes and id to body tag Drupal body class settings can be customised easily with a quick tweek of the template file. One of the most important class/id elements in CSS is the one defined in the body.  It allows for the...

Read more

twitter

Follow on Tweets

  •  

Allowed memory size error in Silverstripe

Category : Blog, Coding, PHP

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.