Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Image Gallery Fatal Error: Allowed memory size

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 5581 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Fatal Error: Allowed memory size Link to this post

    Since PHP doesn't know the dimensions of the image until after it has been uploaded and stored in the filesystem, the only thing I can think of at this point is to throw a cleaner error after upload, saying the image could not be processed. It's better than a fatal error. It really comes down to controlling your user input. It's not unreasonable to say that a 6000 pixel image is not acceptable.

  • stx333
    Avatar
    Community Member
    14 Posts

    Re: Image Gallery Fatal Error: Allowed memory size Link to this post

    Dear Uncle,

    My hosting company tells me "sorry, the php allowed memory size parameter may not be changed"...

    What can I do apart from switching to a different hosting service please?

    Thanks in advance!
    Stas

  • stx333
    Avatar
    Community Member
    14 Posts

    Re: Image Gallery Fatal Error: Allowed memory size Link to this post

    Uncle Cheese - please answer this post - is there anything I can do besides finding a different hosting company (by the way - the major ones in my country tell me that the 64M limit is a standard, and it's not possible to change it.

    Please help.

    Thanks,
    Stas

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