Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

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


Reply

4 Posts   1147 Views

Avatar
pinkp

24 January 2010 at 10:49pm (Last edited: 31 January 2010 11:29pm), Community Member, 168 Posts

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

Avatar
pinkp

31 January 2010 at 11:30pm Community Member, 168 Posts

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?

Avatar
Hamish

3 February 2010 at 7:31pm (Last edited: 3 February 2010 8:33pm), Community Member, 712 Posts

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.

[url]http://silverstripe.org/form[/url]

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

Avatar
pinkp

13 February 2010 at 1:24pm Community Member, 168 Posts

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