Jump to:

4935 Posts in 16037 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » insert image doesn't work since 2.4.2

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1946 Views
  • joninjas
    Avatar
    Community Member
    32 Posts

    insert image doesn't work since 2.4.2 Link to this post

    Hi all,

    We have a serious problem with the images in the backend. It doesn't show any images when uploaded, just the filename. The uploader works but there is no picture afterwards. Also after I've chosen it from the insert picture in the editor it shows up as 'broken'. Till 2.4.1 this worked.
    In the file structure (FTP) the picture is there. The permissions should be ok, 775 for assets.

    Here is our PHP-Configuration:
    http://digital.sites.hostmax.ch/phptest.php

    Cheers + Thanks
    Jonas

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Hi Jonas,

    I can confirm that I am having this same issue. I have tried a clean install and still the same symptoms as you describe. I am running SS 2.4.4.

    I am surprised there has been no discussion on this issue.

    Cheers,

    Gary

  • Parradoxx
    Avatar
    Community Member
    5 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Greetings gentlemen,

    I am having the same problem, too. I can add images through the admin panel, or via FTP. The file names are visible in the Files & Images panel listing, but they do not preview, and links to them fail with an error page (File not found). Its a troubling problem, since its hard to deliver content as all-text. Each missing image requires a thousand words.... Running SS 2.4.3.

    Edit: http://silverstripe.org/installing-silverstripe/show/14878?start=0 seems to address the issue. Making the change found on the link suggested by Sean solved the issue. In short, our servers must be running PHP as FastCGI.

    Bret

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Hi folks,

    Oddly, adding the conditions (or removing this line from .htaccess) has no effect and the issue prevails.

    However, completely removing .htaccess resolves the issue.

    I am running v2.4.4.

    Cheers,

    Gary

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Hello,

    Further investigation reveals that the issue in my case relates to the following code in .htaccess:

    <snip>
    Deny from all
    <FilesMatch "\.(html|htm|xhtml|js|css|bmp|png|gif|jpg|jpeg|ico|pcx|tif|tiff|au|mid|midi|mpa|mp3|ogg|m4a|ra|wma|wav|cda|avi|mpg|mpeg|asf|wmv|m4v|mov|mkv|mp4|swf|flv|ram|rm|doc|docx|txt|rtf|xls|xlsx|pages|ppt|pptx|pps|csv|cab|arj|tar|zip|zipx|sit|sitx|gz|tgz|bz2|ace|arc|pkg|dmg|hqx|jar|xml|pdf)$">
       Allow from all
    </FilesMatch>
    </snip>

    Update: Removing "Deny from all" *only* resolves this issue. I see this message in the error logs of the server: "client denied by server configuration:".

    Anyone have any ideas at what may cause an error with this code? I guess it is a configuration issue with my host.

    Cheers,

    Gary

  • joninjas
    Avatar
    Community Member
    32 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Thanks Parradoxx,

    Sean's .htaccess change solved this issue!!

    Happy 2011!
    Jonas

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: insert image doesn't work since 2.4.2 Link to this post

    Hello,

    To post an update to the resolution to my issue. The rules in .htaccess are case-sensitive and the extensions for my image files were capitalised.

    Cheers,

    Gary

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