Jump to:

1971 Posts in 1275 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » ERROR on www.mysite.co.uk/form anyone else get this?

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

Page: 1
Go to End
Author Topic: 1073 Views
  • pinkp
    Avatar
    Community Member
    168 Posts

    ERROR on www.mysite.co.uk/form anyone else get this? Link to this post

    I've got a few SS sites now and on ALL of them if I got to www.mysite.co.uk/form I get the error page... anyone else have this issue?
    I don't even have a 'form' page but weird that it doesn't then just go to the 'page not found'.
    This is error has come though in email reports too so somehow it is trying to be accessed....

    Error: Form form created without a controller
    At line 126 in /home/sites/mysite.co.uk/public_html/sapphire/forms/Form.php

    Form form created without a controller
    Line 126 of Form.php
    Form->__construct()
    Line 274 of Director.php
    Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    Director::direct(/form.html)
    Line 118 of main.php

    thanks

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: ERROR on www.mysite.co.uk/form anyone else get this? Link to this post

    weird that it happens on all my sites is this an SS thing or have I caused it? can any one else confirm the same happens?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: ERROR on www.mysite.co.uk/form anyone else get this? Link to this post

    Well, not so much bug as a consequene of how silverstripe handles direction rules. Since Form is a valid controller, it tries to pass the request to a form controller, which fails.

    http://silverstripe.org/form

    It's a bit low level - I think the core devs need to have a think about how this is handled.

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: ERROR on www.mysite.co.uk/form anyone else get this? Link to this post

    Thanks for the explanation, but why I am receiving the error,
    why is someone trying to access that page when there is no link to a "form" page on my site..?

    If I try and create a page called "form" it just defaults to "form2", i keep getting the error emailed to me...

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