Update from PHP 5.6 to PHP 7.2
Permalink 2 users found helpful
Hello,
I am managing a homepage that currently is running under PHP 5.6. As the web hosting service won't support PHP 5.6 from the end of the year, we need to update to PHP 7.1 (only until end of 2019) or even better 7.2.
The concrete5 version is: 5.5.2.1. Release Date: April 18, 2012
Which concrete5 version do I need? and is an update possible all the way to the newest version?
How to do it in an easy way?
Thanks for your help.
I am managing a homepage that currently is running under PHP 5.6. As the web hosting service won't support PHP 5.6 from the end of the year, we need to update to PHP 7.1 (only until end of 2019) or even better 7.2.
The concrete5 version is: 5.5.2.1. Release Date: April 18, 2012
Which concrete5 version do I need? and is an update possible all the way to the newest version?
How to do it in an easy way?
Thanks for your help.
Indeed as hutman says. Version 5.5 is really old, so make backups FOR SURE in a case like this (you normally need to do that too, but I'd be extra careful in this scenario). You can upgrade to the latest 5.6 if I'm not mistaken and on GitHub there is a PHP 7.x compatible version (until 7.2.x if I'm not mistaken either). Should be an official release at some point, but not there yet. If you have any Add-Ons installed, they might need some tweaking for PHP7 too so... In the end you're maybe better off building from scratch for the newest concrete5 version. This old version is not gonna last forever, since it's legacy (and so are the third-party Add-Ons).
Thanks for your replies.
in the meantime I found this:https://www.concrete5.org/community/forums/legacy-version-5-6-x/how-...
and thought it would help me along. Unfortunately the updates, either to the next release or to the final release didn't work.
In the log file I find the following over and over again:
'PHP message: PHP Strict Standards: Non-static method Cache::get() should not be called statically in /var/www/clients/client2883/web7485/web/concrete/models/package.php
... with all kinds of different file names at the end.
Is this something I can fix or would you suggest it's easier to start over and rebuild from scratch?
in the meantime I found this:https://www.concrete5.org/community/forums/legacy-version-5-6-x/how-...
and thought it would help me along. Unfortunately the updates, either to the next release or to the final release didn't work.
In the log file I find the following over and over again:
'PHP message: PHP Strict Standards: Non-static method Cache::get() should not be called statically in /var/www/clients/client2883/web7485/web/concrete/models/package.php
... with all kinds of different file names at the end.
Is this something I can fix or would you suggest it's easier to start over and rebuild from scratch?
You may be able to get around that error by using php 5.4 (if that's still an option). More recent versions of c5 don't have this problem, so you could up the php version subsequently (although I don't know the details).
If you want to update to 8.4.x you will need to basically rebuild. You will need a new theme, you will need to replace any/all add-ons, and you will need to migrate the content. You can use the content migration tool, but I believe you have to be on 5.6.3.5 for that to work too.