Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Admin panel Files & Images tab 500 error

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2767 Views
  • lawless
    Avatar
    Community Member
    33 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    "Often times it's just a memory error..."
    UncleCheese, you nailed that one. I was able to get error reporting turned on and got the following:

    Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 35 bytes) in /SERVER PATH/sapphire/thirdparty/jsmin/JSMin.php on line 79

    So the next question is how do I fix this?

  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    I had to deal with memory errors some days ago... check with how much memory you're server config is running. UncleCheese recommended to me 128MB, maybe you only have ~25MB in the config? Depending on what kind of server you are, there will be different ways to work around this issue. Look into this thread: http://www.silverstripe.org/dataobjectmanager-module-forum/show/273134?start=8

    And this website should be very helpful: http://www.ducea.com/2008/02/14/increase-php-memory-limit/

    I had to put

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

    in the header of "mysite/_config.php".

    Good luck!

    Platypus

  • UncleCheese
    Avatar
    4085 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    Yeah, it looks like he's around 28M or so. That's way too low. 128M should run fine.

  • lawless
    Avatar
    Community Member
    33 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    Thanks Platypus.

    The production site is on a shared host so I seem to remember the memory allocation being pretty small. I think I had to tweak the install script to force it to install since SS wants a minimum of 32MB of memory (or something like that).

    I'll try the _config setup and see if that works.

    2767 Views
Page: 1 2
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.