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

Fatal error in memory question?


6 Posts   771 Views


26 July 2010 at 1:56am Community Member, 55 Posts

I am having a problem uploading images to the stages on one of my pages. There is a fatal error in memory on line 23 of (phpGD) file, but on that line I have a getting image size situation, but I don't know how to fix it. Anyway, is there a way to fix this error?


26 July 2010 at 11:42am Forum Moderator, 5511 Posts

Do you have the actual error message? If the message is it ran out of memory space not much you can do apart from up the php memory limit.


26 July 2010 at 11:21pm Community Member, 55 Posts

I was wondering how can I fix it, when I don't know where to increase the memory size?


26 July 2010 at 11:49pm Community Member, 78 Posts

In php.ini
the setting is called 'memory_limit'


27 July 2010 at 9:03am Community Member, 181 Posts

And if you don't have access to php.ini you can try the following in .htaccess:

php_value memory_limit 64M

64M should be enough but change it to something bigger if you have the RAM (or just scale-down the image before you upload it).


28 July 2010 at 12:02am Community Member, 55 Posts

Thank you for your response. I will try it if I have access to it.