Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Selecting Image Folder gives "Error getting files"?


19 Posts   4816 Views


9 April 2010 at 12:30am Community Member, 32 Posts

Server Error log has the following:

[Thu Apr 08 12:28:29 2010] [error] [client XXXXXXXXXX] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17152 bytes) in /var/www/vhosts/ on line 22, referer:

(IP address removed)


9 April 2010 at 1:45am (Last edited: 9 April 2010 1:47am), Community Member, 32 Posts

The solution (for me at least) was to increase the memory limit in the php.ini file.

For anyone else having the same problem look for the line "memory_limit = " I had to set this to memory_limit = 128M (I tried 32M and 64M and neither worked - it may be possible to do it somewhere between 64M and 128M).

You'll need to restart apache after making the change.


9 April 2010 at 1:52am Community Member, 40 Posts

You beat me to it, was just going to point out the min server requirements and see if you are meeting them but you had to increase further.

Extract from system requirements.
Set the maximum memory to at least 48 mb. SilverStripe can be resource hungry for some intensive operations. Note: You can sometimes increase the maximum memory by adding a “ini_set(”memory_limit”,”48M”);” line to sapphire/main.php