Jump to:

23361 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Fatal error in memory question?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 745 Views
  • Denny
    Avatar
    Community Member
    55 Posts

    Fatal error in memory question? Link to this post

    I am having a problem uploading images to the stages on one of my pages. There is a fatal error in memory on line 23 of (phpGD) file, but on that line I have a getting image size situation, but I don't know how to fix it. Anyway, is there a way to fix this error?

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: Fatal error in memory question? Link to this post

    Do you have the actual error message? If the message is it ran out of memory space not much you can do apart from up the php memory limit.

  • Denny
    Avatar
    Community Member
    55 Posts

    Re: Fatal error in memory question? Link to this post

    I was wondering how can I fix it, when I don't know where to increase the memory size?

  • Mad_Clog
    Avatar
    Community Member
    78 Posts

    Re: Fatal error in memory question? Link to this post

    In php.ini
    the setting is called 'memory_limit'

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Fatal error in memory question? Link to this post

    And if you don't have access to php.ini you can try the following in .htaccess:

    php_value memory_limit 64M


    64M should be enough but change it to something bigger if you have the RAM (or just scale-down the image before you upload it).

  • Denny
    Avatar
    Community Member
    55 Posts

    Re: Fatal error in memory question? Link to this post

    Thank you for your response. I will try it if I have access to it.

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