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

File manager memory error


Reply


3 Posts   409 Views

Avatar
codemonkey88

Community Member, 13 Posts

5 June 2013 at 8:50pm

The file manager isn't loading and shows the following error;

<code>
Fatal error: Out of memory (allocated 56098816) (tried to allocate 17152 bytes) in /framework/filesystem/GD.php on line 32
</code>

I've had a look on the forums, and the closest I could find was someone saying they had trouble saving pages. They managed to fix it by setting a memory rule in htaccess, but I get a 500 error when I try this.

Is there anything I can do, or is it one for the hosting guys?

Avatar
swaiba

Forum Moderator, 1799 Posts

5 June 2013 at 8:56pm

Hi,

[i/framework/filesystem/GD.php on line 32

GD is the graphics library and it is more than likely that it is a problem with the image itself. I've had this when there are either really really large images being turned into thumbnails, or when the uploaded image is corrupt itself.

Avatar
codemonkey88

Community Member, 13 Posts

5 June 2013 at 9:29pm

Great, thanks.

Is there any way you can set file validation for the file manager without making your own extention? The documentation seems a bit vauge on this front.