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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1132 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, 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.

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.