Moving from old Host to new - using Cpanel - Followed 5 step process however getting PHP Fatal error: Cannot use 'Object' as class name

Permalink
Hi, guys i have taken over a new client and they are running Concrete 5.6.3.4. I was being hosted by the old provider that are no longer able to provide hosing.

So i have created a new host - and used the old Cpanel to backup the home directory and the existing SQL database and restored both of these onto the new Cpanel. I have also setup a new SQL user and permissions and password - then updated the \config\site.php with the new credentials.

All the file and folder permissions look identical to the old server.

When loading the site on the new url - i am getting the following error in the error_log file.

[28-Sep-2020 14:02:04 Australia/Sydney] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home/croydons/public_html/updates/concrete5.6.3.4/concrete/libraries/object.php on line 3

I have also followed all the steps in dev installlation guide -"Moving a Site" however the final set seems to be for a newer version of C5 as my install doesn't include an application/config/database.php folder - the only thing that looks simlar to this is the config\site.php file.

Any help would be much appreciated.

 
CroydonSports replied on at Permalink Best Answer Reply
Hi All, was a simple fix in the end - just needed to downgrade the PHP Version via the Cpanel using "PHP Selector".

Just needed to be running 5.6 instead of the 7.4 that is preset as default.
JohntheFish replied on at Permalink Reply
JohntheFish
Or you could update the site to 5.6.4 from GitHub, fully compatible with php7+.