Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Umask / permissions for resample directory?

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: 1173 Views
  • Wilson
    Avatar
    Community Member
    63 Posts

    Umask / permissions for resample directory? Link to this post

    Hi Uncle Cheese,

    Just curious if you or anyone out there might be able to help me with a umask and/or permissions issue for the resample directories?

    I built 200+ ImageGallery galleries, using a PHP script I wrote to make the directories, copy the source images and insert the SQL. But the 'resampled' images aren't being triggered when I load the Photos tab in the CMS or view it on the front-end. They generate anytime they're requested via HTTP and don't exist right?

    I've noticed a few other posts in the forums mentioning similar issues, but no clear answer.

    I appreciate your time.

    Wilson

  • UncleCheese
    Avatar
    4085 Posts

    Re: Umask / permissions for resample directory? Link to this post

    Well, that's a pretty complex thing to do with a PHP script and some SQL queries. Are you sure it's just the resampled images that aren't appearing? My guess is those galleries and albums are empty. You added them as ImageGalleryImage objects? And created ImageGalleryItem records as their parents? And all of those have AlbumIDs?

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Umask / permissions for resample directory? Link to this post

    Yep. Believe it or not, I think everything on the SQL side is correct. It took me about 8 hours to get it right, looping through a spreadsheet the client sent.

    In the CMS, I see the images, with the correct ImageGalleryImage ID that relates to the File table, and the ImageGallery album, and the ImageGallery page, etc.

    If I hover over the 'delete' icon I can see that it's the correct ID for that item, but I'm only getting the default document GIF.

    I may have just made the assumption that SilverStripe will resample any image that it needs if the resampled image isn't available. Do you know if that's the case?

  • Wilson
    Avatar
    Community Member
    63 Posts

    Re: Umask / permissions for resample directory? Link to this post

    You were right, it was in the SQL. For some reason, in my prototype gallery the original IDs in the File table had been reset.

    Thanks!

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