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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Upgrading 2.3x to 2.4.1 with Userforms 2.0 to 3.0


Go to End


2 Posts   1410 Views

Avatar
micahsheets

Community Member, 165 Posts

17 August 2010 at 6:01am

I have a site running 2.3 and I upgraded it to 2.4.1 and I upgraded the Userforms to 3.0. As usual whenever upgrading userforms I have to completely delete all the relevant userforms tables from the database and dev/build to get them put back clean. This is at least been my experience. This particular site has a very complex form so this is a huge hassle because I have to rebuild the form from scratch. I don't know how it is possible for this upgrade to ever work properly because there are tables that have been renamed obsolete so of course any forms I had that used those tables will be broken. Also even saving the simplest forms now fail with a javascript error.

Is upgrading userforms always supposed to be this difficult? Is there something I am missing that would make this work? I have built many SilverStripe websites and used userforms a lot but this is always a real problem whenever I upgrade userforms on a site where I am already using it.

Avatar
Willr

Forum Moderator, 5523 Posts

17 August 2010 at 6:53pm

This is at least been my experience. This particular site has a very complex form so this is a huge hassle because I have to rebuild the form from scratch.

You shouldn't have to do this. Running a dev/build should be enough for the upgrade. Not sure how old you orignal UDF was but if its really really old you can also run the Migration script but that was more used for upgrading from 0.1 to 0.2 (which you probably should have used last time).

I intend to make upgrading as easy as possible to encourage people to keep up to date. Its a wee bit tricky as SilverStripe doesn't have a very nice module API to determine nice upgrade paths but it shouldn't mean you have to delete everything.

What you should do next time

* Delete userforms folder. When upgrading any module delete the old one first (don't just 'replace')
* Extract the new one
* Ensure its named 'userforms'
* Run a /dev/build in the web browser
* Reload the CMS using ?flush=1 to ensure its up to date.

If you still get an error please let me know the exact error message. This is available in your PHP error log file or console panel in your browser