Jump to:

23368 Posts in 18145 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Selecting Image Folder gives "Error getting files"?

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

Page: 1 2 3
Go to End
Author Topic: 4716 Views
  • timcole
    Avatar
    Community Member
    32 Posts

    Re: Selecting Image Folder gives "Error getting files"? Link to this post

    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/beta2.missionworship.com/httpdocs/sapphire/filesystem/GD.php on line 22, referer: http://beta2.missionworship.com/admin/

    (IP address removed)

  • timcole
    Avatar
    Community Member
    32 Posts

    Re: Selecting Image Folder gives "Error getting files"? Link to this post

    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.

  • hive.net.au
    Avatar
    Community Member
    40 Posts

    Re: Selecting Image Folder gives "Error getting files"? Link to this post

    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

    4716 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.