Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » Page Not Found in ImageField iframe

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: 499 Views
  • opex
    Community Member
    7 Posts

    Page Not Found in ImageField iframe Link to this post


    I have a problem with the ImageField that I can't seem to solve.

    I've made a SiteConfig-decorator to add an ImageField where the site admin can upload a banner to use on their site. This works great in the test environment but fails on the live server. What I get in the iframe is a Page Not Found instead if the image upload form.

    The url loaded in the iframe looks like this; http://example.com/admin/RootForm/field/SiteLogo/iframe and if I load it in the browser I get the Page Not Found error. But if I append a ? to the url the form loads perfectly fine. So I've hit a dead end.

    I've searched for solutions and tried the one posted here, but it didn't help.

    I'm not sure if it's of any help, but the live server configuration is
    Apache: 2.2.22
    PHP: 5.2.17
    SilverStripe: 2.4.5 but I've tested the latest from silverstripe.org (2.4.7 i believe) with the same result

    I've found something out that makes me believe that this is not a SS issue but rather some kind of server configuration that plays hide and seek with me.

    By dumping the $url passed to Director at the end of main.php I've found out that if I visit
    the url is 406.shtml
    but if I append anything whether it be / or ? the url passed is admin/RootForm/field/SiteLogo/iframe/ the field is rendered as it should be.

    The quick solution in my case is to append a / to the iframe url in FileIframeField but if anyone has a clue where I can start to hunt this error down I'm all ears.

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.