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.

All other Modules /

Discuss all other Modules here.

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

Frontend for UserForms module not work


Reply


2 Posts   1045 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.