PHP below 7.4

Silverstripe Version:

Question:

Details of your query go here

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

Hello,

Was there something specific that you needed to know?

Obviously running a site on versions that old does present certain risks, so it would be worth investigating an update.

Hello Tim,

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.

Hello Tim,

I hope you are well.

Can you kindly help upgrade SilverStripe?

Thank you.

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)

Hello Tim - The site is running SilverStripe Framework version 3.1.10.

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.

Hello Tim,

Thank you for your response. Can you kindly point me in the direction of the tools?

Thank you.

Here you go: Upgrading to Silverstripe CMS 4 | Silverstripe CMS Documentation