2 December 2009

Fatal Error: Allowed Memory Size Fix for ExpressionEngine 2.0 PB

I’ve been running a couple of tests with a new installation of Expression Engine 2.0 Public Beta. Everything has been running pretty smoothly, but I did run into an error when I tried to edit existing pages added during the installation (if you selected to have Agile Records added).

When trying to edit an entry would get:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 311296 bytes) in...

A quick workaround for this is to add the following line of code at the top of your admin index.php page.

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

I’m only running a local version on my MacBook Pro MAMP PRO setup for my own testing purposes so this is going to be pretty isolated, but I thought I’d post this in case somebody else runs into the same snag.

Continue Reading