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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

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


Go to End


4 Posts   1757 Views

Avatar
pinkp

Community Member, 182 Posts

24 January 2010 at 10:49pm

Edited: 31/01/2010 11:29pm

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

Community Member, 182 Posts

31 January 2010 at 11:30pm

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

Community Member, 712 Posts

3 February 2010 at 7:31pm

Edited: 03/02/2010 8:33pm

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.

Avatar
pinkp

Community Member, 182 Posts

13 February 2010 at 1:24pm

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