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.
I'm using new install of Silverstripe 2.3.2beta1, and just (tonight - 20090519) downloaded via. svn the Userforms 0.2, placed in mysite/userforms directory (which I created).
It seems that I've got a similar problem to Rodneyt. When I try to add a text field to a form, I get;
Fatal error: Method name must be a string in /var/sites/<site name remove here>/sapphire/forms/Form.php on line 245
Any ideas how to correct this?
Great work guys, this looks really good! Only had a brief play with it but from what I can see it's a vast improvement on v0.1
Am I missing something, how do you set a field to be required? there is no checkbox like on userforms v0.1.
I also get the same error as Nick on the file upload field (running on my local WAMP).
Sorry the missing validation was a mistake. I have fixed this in
I will release a new update to userforms tomorrow as it has contained a few fixes (for future 2.4 support and bugfixs). Thanks to all for the feedback
I get the same error as rodney
Fatal error: Method name must be a string in /home/mysite/public_html/design/sapphire/forms/Form.php on line 245
flushed DB front/admin
Attached screenshot to confirm.
Your cms styling for it seems wack. Make sure you have flushed your cache and are visiting the admin like yoursite.com/admin?flush=1
Ok, so it must have partially been browser cache -- did the flush in another browser and though I do not get an error now when creating a field (any field) it 'saves it' upon clicking, but doesn't create the field.
I can edit the content on the page, the submission message, but do not see any form in the admin -- I do see a submit button and a random field ... attached is a screenshot of the front end, and this is the parsed code below:
<form id="Form_Form" action="/new-userdefinedform/Form" method="post" enctype="application/x-www-form-urlencoded">
<p id="Form_Form_error" class="message " style="display: none"></p>
<input class="hidden" type="hidden" id="Form_Form_Referrer" name="Referrer" value="http://my.domain.com/contact-us/" />
<input class="hidden" type="hidden" id="Form_Form_SecurityID" name="SecurityID" value="768714866" />
<div class="clear"><!-- --></div>
<input class="action" id="Form_Form_action_process" type="submit" name="action_process" value="test" title="test" />
<input class="action nolabel" id="Form_Form_action_clearForm" type="reset" name="action_clearForm" />
Again, running 2.3.2-rc2