Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ImageGallery problem with uploading files

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 993 Views
  • Slimo
    Avatar
    Community Member
    8 Posts

    ImageGallery problem with uploading files Link to this post

    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

  • wmk
    Avatar
    Community Member
    44 Posts

    Re: ImageGallery problem with uploading files Link to this post

    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

  • Slimo
    Avatar
    Community Member
    8 Posts

    Re: ImageGallery problem with uploading files Link to this post

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

  • wmk
    Avatar
    Community Member
    44 Posts

    Re: ImageGallery problem with uploading files Link to this post

    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

  • Slimo
    Avatar
    Community Member
    8 Posts

    Re: ImageGallery problem with uploading files Link to this post

    thanks

    993 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.