Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Default configuration?

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: 688 Views
  • elementweb
    Avatar
    Community Member
    5 Posts

    Default configuration? Link to this post

    How would I proceed to add default configuration values for thumbnail sizes and such?

    I had a problem with pages on a site I did for a client that generated errors. Turned out because the configuration values were missing, it made GD crash and the page failed to load. I can manage to always set the configuration, but I would like to avoid that burden to my client, who should only have to set a page to Gallery for it to work.

  • elementweb
    Avatar
    Community Member
    5 Posts

    Re: Default configuration? Link to this post

    Well looking at the code... it seems there already are default values set...

    But I still get this error:

    Error at sapphire/filesystem/GD.php line 123: No dimensions given (http://vaguedecirque-staging.strangeelement.com/duo-symbiose-photos-fr/)

    The error thrown is in GD::resize

    if(!$width && !$height) user_error("No dimensions given", E_USER_ERROR);

  • UncleCheese
    Avatar
    4085 Posts

    Re: Default configuration? Link to this post

    You need to set your thumbnail width. The default values don't apply unless you create the page new. It doesn't work when you convert it from an old page type.

  • elementweb
    Avatar
    Community Member
    5 Posts

    Re: Default configuration? Link to this post

    Is there a way then to catch a page type change to apply the defaults?

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