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

Currently on 2.4.7 Wanting to Upgrade to 3.1


Go to End


13 Posts   4460 Views

Avatar
JPDewd

Community Member, 4 Posts

11 November 2014 at 8:36am

I'm upgrading from v2.4.5 to the current 3.1.6. I am not the original installer. Steps I have taken:

1. backup both db and webroot
2. placed download of 3.1.6 files in the webroot directory
3. deleted the cms, sapphire, and googlesitemaps from the webroot
4. placed cms and framework folders from the 3.1.6 files into the webroot
5. navigated to https://mysite/dev/build

I receive a 500 error. I could use some help, our site is down due to DreamHost dropping support for an older php version.

thanks,
JP

Avatar
thomas.paulson

Community Member, 107 Posts

12 November 2014 at 1:03am

Hi there,

You need to modify mysite file too, like public static $db to 'private static $db'. we had the same issue with DreamHost, luckly me managed to upgrade them.

Avatar
JPDewd

Community Member, 4 Posts

12 November 2014 at 3:26am

That doesn't seem to work. Interestingly, if I change my errorpage.php and make my static calls all public static $ calls, and launch my site as my domain/isdev/debug, I get a really stripped down page. I don't fully understand these calls.

Using my web inspector on my browser, I'm seeing an interesting error keep popping up. I get a "ReferenceError: Can't find variable: Behaviour". When I look at the source it's calling on, I can see some js that's still referencing the sapphire directory. But I can't for the life of me find the directory where that code is. It looks like it's the main page.

Any help from this community would be really helpful.

Avatar
JPDewd

Community Member, 4 Posts

12 November 2014 at 3:38am

If I change the calls in errorpage.php to private, I receive this error when navigating to my domain/isdev/debug:

Access level to ErrorPage::canAddChildren() must be public

Avatar
JPDewd

Community Member, 4 Posts

12 November 2014 at 3:39am

If I change the calls in errorpage.php to private, I receive this error when navigating to my domain/isdev/debug:

Access level to ErrorPage::canAddChildren() must be public

Go to Top