Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Upgrading from userform 0.1 to 0.2.0 problems

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 995 Views
  • Tomase
    Avatar
    Community Member
    13 Posts

    Upgrading from userform 0.1 to 0.2.0 problems Link to this post

    Hello!

    We have tried to upgrade from userform 0.1 to 0.2.0, but get an Error when we try to add a UserDefinedForm in the cms. ("there has been an error"). We use Silverstripe 2.3.4 and experienced that the userform not was working properly after upgrading to 2.3.4. When a user sends a form he dont get the comfirmationpage.

    We have noticed that the Url to the confirmationpage doesnt show up. It should like this: http://utv1.w3spor.no/kontakt/finished?referrer=http%3A%2F%2Futv1.w3spor.no%2F . But on the 2.3.4 CMS with 0.1 userform the url shows only: http://www.w3spor.no/kontakt/finished?referrer=

    Thats why we would install userform 0.2.0.

    We deleted the old userform, runed dev/build, then installed the 0.2.0 version and builded the database again. We also tried to delete all the UserDefinedFOrm and submitted form tables in the database.

    We have noticed in userforms _config is a requirement to FieldEditor.js, while in javscript folder is only Userform.js (but this does not seem to cause a failure on new installations of the module ????) We have also tried to change the requirement call to Userform.js but it makes no difference.

    Pleas help!!

    Tomase

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Upgrading from userform 0.1 to 0.2.0 problems Link to this post

    Put the site into devmode to see the actual error in the CMS. To put the site into devmode set Director::set_environment_type("dev"); in your _config and then using the console panel in firefox you should see the actual error message.

    If you had existing forms with 0.1 then you can also run the migration script at yoursite.com/dev/tasks/UserFormsMigrationTask.

    Also if you're upgrading you should be using 0.2.1 rather then 0.2.0 - http://groups.google.com/group/silverstripe-announce/browse_thread/thread/b4f2eaae565d6243

  • Mysth-R
    Avatar
    Community Member
    3 Posts

    Re: Upgrading from userform 0.1 to 0.2.0 problems Link to this post

    Hi Willr,

    I also would like to upgrade from 0.1 to 0.2.1 but I already got some forms and the "yoursite.com/dev/tasks/UserFormsMigrationTask" url doesn't work.

    How can I migrate my old forms ?
    Is there any risk to loose submissions ?

    Thank you

    Cheers,

    Erwan

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Upgrading from userform 0.1 to 0.2.0 problems Link to this post

    Hey Mysth-R.

    Could you expand on "it doesn't work". Do you get an error page? something missing?. To run the tasks you may need to have PHPUnit installed and either be in devmode or provide a password.

    995 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.