Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ImageGallery problem

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: 1285 Views
  • animasola
    Avatar
    Community Member
    121 Posts

    ImageGallery problem Link to this post

    I encountered a problem with this module (http://silverstripe.org/imagegallery-module/)

    It says this:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in /home/ahonfoun/public_html/sapphire/filesystem/GD.php on line 22

    Is it because I had too many albums? What is the maximum number of albums allowed?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery problem Link to this post

    I always run my SS sites at at least 128M.

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: ImageGallery problem Link to this post

    I used to run it at 128M and now I run it at 256M and it still gets errors. Any way I can fix this? And one question, is the memory_limit embeded in the silverstipre configuration somewhere? Like the amount of resources allocated? Do I just need to change the memory_limit in the php.ini or should I fix a file in Silverstripe as well whenever I increase the memory allocation?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery problem Link to this post

    Memory limit errors almost always trace back to the GD library. If you have a lot of huge images on your page that have not yet been resampled to the size you're requesting, you'll see memory leakage all over the place.

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: ImageGallery problem Link to this post

    What is weird is that it says:

    Fatal error: Allowed memory size of 67108864 bytes exhausted

    Which is around 64 MB. I am very certain that I have edited my memory limit to accommodate 256MB for the memory. But I also remember, when installing SS that it was initially set to 64MB. Is this because it has configured the system to follow the memory limit set at installation? Is it somewhere in a config file where memory limit is set in SS itself?

    The only solution I can find is to reinstall the site with an initial limit set to 256MB.

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery problem Link to this post

    Just add to your _config.php:

    ini_set('memory_limit','128M');

    If you're on shared hosting or something, there's probably a restriction on that setting. A lot of hosting providers won't let you have free reign over their resources.

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: ImageGallery problem Link to this post

    That did the trick! thanks.

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