Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Files & Images Problem

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1261 Views
  • Pixel
    Avatar
    Community Member
    78 Posts

    Files & Images Problem Link to this post

    Hi,
    My clients pointed out to me that they are having trouble with their Files and Images.

    When they upload an image everything seems to work fine - the image displays in the view/edit popup and the image can be edited. However when inserting an image to the content the thumbnail does not display (just the file name) but the image does display in the content when inserted. After saving & publishing and viewing the page the image does not display but the text seems to be wrapping around something.

    All of the folders that have been created by the client are like this, however, the original Uploads folder from install works without a problem

    What is wrong? I have encountered this before cannot remember how it was resolved or if the site was just deleted and rebuilt.

  • pac
    Avatar
    Community Member
    25 Posts

    Re: Files & Images Problem Link to this post

    it is indeed quite annoying. it's a permissions issue with the _resampled folder. it eems to be creates with 754 but should be 755 , and so should be the files in the folder. once the folder has the right permissions, it seems to apply 755 to the files though

    I do this manually for the time being, but I believe it should be edited in one of the scripts, maybe on line 405 of GD.php ?

    if anyone in the core team could help, that would be greatly appreciated

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: Files & Images Problem Link to this post

    Hmmm, well in assets all of the folders are set as 777 and all the _resampled folders are 755

    Could it be to do with the Owner and Group

    When the owner and group is www-data (Upoads folder) the thumbnails in are set as 664 and everything works well
    However another one of the main folders is www-data but that doesnt work

    When the owner and group is ftp-p4g3 and psacln the thumbs are set as 644 and dont work

    ideas on what i should do?

  • pac
    Avatar
    Community Member
    25 Posts

    Re: Files & Images Problem Link to this post

    nope, as we get different behaviors apparently...
    try setting permissions and ownership manually and check the result in the cms, maybe it'll give us a clue
    which version are you running ?
    I run 2.2.2

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: Files & Images Problem Link to this post

    Ok another problem i have found - it is not possible to create a new folder.
    I create a folder in the Files and Images, rename it and save. Go to content and then back to Files and Images and the folder has gone!?
    I looked in the assets folder an it is not their either.

    What is wrong?

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