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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

GD memory problem


Go to End


3 Posts   1909 Views

Avatar
roterl

Community Member, 44 Posts

2 June 2008 at 9:19am

Hi,
When I'm trying to upload images I got the folowing error:

Fatal error: Out of memory (allocated 42991616) (tried to allocate 12288 bytes) in /home/atax/www/www/sapphire/filesystem/GD.php on line 28

The same images success to upload on other SS installation on other hosting service.
On the working service the PHP memory limit is 64M and on the not working one is 80M, so I guess it isnt the memory limit.
Does anyone know what's the problem?

Avatar
Willr

Forum Moderator, 5523 Posts

2 June 2008 at 8:56pm

Are you sure the one thats not working is 80mb Memory limit? 42991616 btyes is only like 42mb? Ive had trouble with GD up to 128mb but thats due to the insane resolution I was using

Avatar
roterl

Community Member, 44 Posts

3 June 2008 at 5:37am

Yes, calling phpinfo() also return that the memory limit is 80M.
About the resolution, it's about 3070 X 2300. Smaller images work (1024 X 768), but The strange thing is that on 64M the large images works and on the 80M they didnt.

thanks
Rotem.