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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Userforms - checkbox group parse error


Go to End


6 Posts   1468 Views

Avatar
NickJacobs

Community Member, 148 Posts

2 December 2009 at 5:45pm

Hi, I'm trying to add a checkbox group to a userform, and when I try to publish it gives me a javascript parse error.

I can save it and view in draft and all looks & works fine, but I just cannot publish it.

I'm on ss2.3.4 with latest version of userforms.

Any ideas??

Avatar
Double-A-Ron

Community Member, 607 Posts

2 December 2009 at 7:17pm

Hi Nick,

Are you able to use firebug to get the specific error please?

Aaron

Avatar
NickJacobs

Community Member, 148 Posts

3 December 2009 at 8:22am

Hi A-ron the error is:

<b>Fatal error</b>: Call to undefined method EditableFormField::publish() in <b>/var/www/vhosts/futurefit.co.nz/httpdocs/userforms/code/editor/EditableMultipleOptionField.php</b> on line <b>50</b><br />

Avatar
Double-A-Ron

Community Member, 607 Posts

3 December 2009 at 11:52am

Ah, now this one I have seen, I bet you get the same with dropdowns too.

http://open.silverstripe.org/ticket/4586

In that ticket, Will says he was only able to duplicate on certain versions of PHP.

What version/revision of SS and Userforms are you running?

Aaron

Avatar
NickJacobs

Community Member, 148 Posts

3 December 2009 at 12:10pm

Hi SS is the latest stable release ( $URL: http://svn.silverstripe.com/open/modules/cms/tags/2.3.4/silverstripe_version $ )

Userforms is the current SVN : revision 94278

Avatar
Double-A-Ron

Community Member, 607 Posts

3 December 2009 at 12:32pm

Yeah, not 100% sure on this one but I found that same error on Userforms r89035 and I'm not sure if this has been looked at further in later revisions.

I found I had to scale back to r85338 to get it working.

Aaron