CakePHP 2.x Stablise for Php 7.2

Hi, I upgrade my PHP version from 5.6 to 7.2 and my website stops working on the 7.2 version. I want to make website stable for Php 7.2 version either changes on CakePHP 2.x version or upgrade CakePHP version.
One error I got is: " Fatal error : Cannot use ‘Object’ as class name as it is reserved in /var/www/html/studysection/lib/Cake/Core/Object.php on line 26"

Any help is highly appreciated.

Unfortunately, you will have to revert it back to 5.6, alternative, upgrade your app to CakePHP 2.8+

1 Like