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 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

Upgrade website from 3.0.5 to 4.0.0-alpha6

Go to End

2 Posts   1661 Views


Community Member, 15 Posts

20 April 2017 at 3:03am

Edited: 20/04/2017 3:04am

I have a complex website built with 3.0.5 and i need to upgrade it to 4.0.0-alpha6.

What I've done so far

* I changed composer.json with the version I want and run 'composer update'
* I replaced all the old modules with the new versions that support 4.0
* Now I keep getting errors/incompatibilities. When i fix something and refresh I get another and so on.

My questions:
* Have I approched this update the right way? If not what should I do instead?
* I've seen some available tool to namespace classes but chouldn't really understand how that works, so no success there either.

I would appreciate any kind of help here.


Forum Moderator, 1391 Posts

21 June 2017 at 2:32am

OK, this is a lot later then it should be, but in any case:

First I would wait for the first beta version before upgrading a complex site - because untill then the API is still subject to changes. Second there are a lót of API changes, so you'll have to test and update every bit of your custom code!

As to namespacing, I use netbeans and if I type 'Use SomeClass' it will automatically show me the proper namespace...

There's this: (not sure how up-to-date)

And possibly this:

Working with images has changed enormously - there is a task in /dev/tasks/ that may help importing existing images (haven't tried)