SilverSmith icon indicating copy to clipboard operation
SilverSmith copied to clipboard

Fatal error: Allowed memory size exhausted on SilverStripe 3.1.1

Open jeffwhitfield opened this issue 12 years ago • 5 comments

Just tested using a fresh install of SilverStripe 3.1.1 with Composer and got a "Allowed memory size" error when I run just about any SilverSmith command. I'm using MAMP Pro 2.2 on OS X Mavericks with PHP set to version 5.3.27. Just to be sure, I tested it with SilverStripe v3.0.8 and didn't get any error so...me thinks it's something in version 3.1.1 that's messing with it. Here's the full error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in ..../framework/dev/Deprecation.php on line 82

jeffwhitfield avatar Oct 31 '13 01:10 jeffwhitfield

Same here with SS3.1, PHP 5.3.6, and MAMP 2.1.1. Thing that has changed on my side is upgrade to Maverick OS X 10.9 ?

mschilder avatar Nov 06 '13 16:11 mschilder

I think this has more to do with the built-in version of PHP. When you run SilverSmith, you're not using the version of PHP that MAMP runs on. The version that comes built into Mavericks is v5.4.17. That might have something to do with it.

jeffwhitfield avatar Nov 06 '13 18:11 jeffwhitfield

Thanks, so I'll have to look into the php.ini of the "Mavericks" php version...

mschilder avatar Nov 06 '13 19:11 mschilder

Have been spending some time to add and configure php.ini, but... to no avail...

sudo cp /etc/php.ini.default /etc/php.ini sudo nano /etc/php.ini

memory_limit = 256M

mschilder avatar Nov 08 '13 08:11 mschilder

Yes, I had to ensure SilverSmith was using MAMP, otherwise I got the same errors. For me it was

export PATH=/Applications/MAMP/bin/php/php5.3.6/bin:$PATH

wsheldon avatar Nov 29 '13 23:11 wsheldon