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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ImageGallery problem with uploading files


Go to End


5 Posts   1665 Views

Avatar
Slimo

Community Member, 8 Posts

29 March 2011 at 1:14am

Hi i need help with this problem.

when i uploading files in gallery write this error

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 10368 bytes) in /data/b/a/data/sub/agenturaivi/sapphire/filesystem/GD.php on line 32

Avatar
wmk

Community Member, 87 Posts

29 March 2011 at 2:16am

Hi Slimo,

seems like you want to uplaod a very big image. Image Gallery (or DOM) produces a thumbnail right after uploading. If you don't have enough memory for php, it produces this error.

Try to upload smaller images (e.g. the biggest resolution you want to display). If you need the images that big you need more memory.

Hope that helps,

Wmk

Avatar
Slimo

Community Member, 8 Posts

29 March 2011 at 2:31am

the images have 240kb and resolution 2592x1465
is it big?
please how i can set more memory for php? thanks

Avatar
wmk

Community Member, 87 Posts

29 March 2011 at 3:45am

Well, i don't have problems with images that are 1600px big. While resizing no the filesize but the image dimensions need the memory.

You can increase your memory limit via php.ini or via your .htaccess file, depending on your hosting or your server. This is what i found quickly using google search for "php increase memory".

http://www.lost-in-code.com/programming/php-code/php-increase-memory-limit/

hth wmk

Avatar
Slimo

Community Member, 8 Posts

29 March 2011 at 4:23am

thanks :)