// Include any relevant code. If you have a lot of code, link to a gist instead.
I have a website done with older version of SilverStripe. The codebase, specifically the framework and cms directories, contains legacy logic that is not compatible with modern PHP environments.
The application requires a PHP version below 7.4 to function correctly.
Thank you for your response. I am moving the website from the current hosting to a new hosting, so I need help upgrading SilverStripe to a version compatible with supported PHP environments.
Can you tell us what version of Silverstripe it is currently on? A quick look in the composer.json file will tell you (or you can look in the CMS on the bottom left)
OK, so 3.1 is a long way from the current versions. Depending on the complexity and size of the site, and what you have in the way of custom code, it may be just as simple to set up a new site on version 6, and copy the content over.
If you do need to perform an actual upgrade, you’ll need to move from version 3 to version 4 first, since that’s where the most changes happened in the code, and there are some tools around to help that process. Then going from 4 to 6 (the current release) is a lot simpler.