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.

All other Modules /

Discuss all other Modules here.

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

Frontend for UserForms module not work


Go to End


2 Posts   1755 Views

Avatar
mhouchin

Community Member, 2 Posts

12 February 2009 at 11:50pm

Edited: 12/02/2009 11:51pm

Hi,

I have just installed the UserForms module, it works absolutely fine in the administration however when trying to view the page on the frontend I get the following error:

[User Error] Object::__call() Method 'Fields' not found in class 'UserDefinedForm_Controller'

I have traced this to userforms/code/UserDefinedForm.php line 272:

foreach( $this->Fields() as $field ) {
$fields->push( $field->getFormField() );
if( $field->Required )
$required[] = $field->Name;
}

Anyone know what would be causing this? Did I miss something? I haven't modified the module in anyway. Searched alot but I can't seem to find this problem mentioned anywhere else.

The site is running Silverstripe 2.3 RC3

Thanks in advance

Mark

Avatar
mhouchin

Community Member, 2 Posts

19 February 2009 at 9:26pm

Found out this was due to modified core code.