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?


Reply


6 Posts   807 Views

Avatar
Denny

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?

Avatar
Willr

Forum Moderator, 5513 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.

Avatar
Denny

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?

Avatar
Mad_Clog

Community Member, 78 Posts

26 July 2010 at 11:49pm

In php.ini
the setting is called 'memory_limit'

Avatar
TotalNet

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

Avatar
Denny

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.