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, Ed, biapar, Willr, Ingo, swaiba

Fatal error in memory question?

Go to End

6 Posts   1071 Views


Community Member, 55 Posts

26 July 2010 at 1:56am

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?


Forum Moderator, 5523 Posts

26 July 2010 at 11:42am

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.


Community Member, 55 Posts

26 July 2010 at 11:21pm

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


Community Member, 78 Posts

26 July 2010 at 11:49pm

In php.ini
the setting is called 'memory_limit'


Community Member, 181 Posts

27 July 2010 at 9:03am

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).


Community Member, 55 Posts

28 July 2010 at 12:02am

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