Jump to:

23551 Posts in 19343 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » CMS can't access images

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 590 Views
  • Tetragrammaton
    Avatar
    Community Member
    10 Posts

    CMS can't access images Link to this post

    I've got a bunch of images in my assets folder, but when I insert one in my html, the image doesn't load and I get a 500 error. I'm using dataobjectmanager and uploadify. I've set all the folder permissions to 777. What the heck is wrong?

    Any help would be appreciated.

  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: CMS can't access images Link to this post

    How do you try to insert the images in the theme?

    Do you activated Dev Mode for more informative errormessages?

    Director::set_environment_type("dev"); // _config.php

  • Tetragrammaton
    Avatar
    Community Member
    10 Posts

    Re: CMS can't access images Link to this post

    Yep. I have dev mode on as well as verbose error messages. Silverstripe itself isn't throwing an error, the server just can't access the image files, thus the http 500 error. And it isn't images that I'm trying to insert into my theme. Those are all working fine, most likely because they are stored in the images folder within the theme folder.

    The trouble I'm having is images stored within the assets folder which are supposed to be available to my client via the cms to insert into the content boxes via the tinyMCE editor.

    If you take a look at the image I've attached, you'll see what I'm talking about. If I take a look at the page resources, it shows that each of those images is throwing an http error 500, i.e. they cannot be accessed. I've tried resyncing the image cache with dev/tasks, but that didn't help. I have no idea what else to do.

    Attached Files
  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: CMS can't access images Link to this post

    you say all images and even the /assets folder has the correct rights?
    do you have ssh access? if so try this:

    chmod 777 /assets -Rf

    I had a similar problem and thougt I set all the rights correct with filezilla, but that dont worked ...

    I also had problems like this when I use a http basic auth to secure the site with a pwd ...

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: CMS can't access images Link to this post

    heho

    on some hosts i've seen smtg like this. the .htaccess in the assets-folder caused the problem. can you remove it just to be sure it's not the cause in your case?

    lukas

  • Tetragrammaton
    Avatar
    Community Member
    10 Posts

    Re: CMS can't access images Link to this post

    Weird. Deleting the .htaccess file fixed it. I'll have to take a look at the file to see why it was causing the issue. Thanks for the suggestion.

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