2.6 to 3.x version upgrade issue

I want to upgrade my app version from 2.6 to the latest one. I have tried a few but it was taking a series of changes ib the code. Is there any smart way to upgrade it?

I am also trying to upgrade my cakephp 2.6 to 3.4 version. Can somebody suggest me steps and resources which can help me for smooth version transition.

1 Like

There are some migration tools that might help.
But there are chances that you end up with a crashed app. I would recommend to download the cake 3.x version and shift the models and all that manually.

Thanks for your prompt Answer. I am using upgrade tool to upgrade the version. But i doubt it does not do all migration. Can some body provide info on what are the major changes to be done after running the tool commands. I am getting lot of errors
for example String.php class error

Hi there,

I would recommend first upgrading to 2.9 (See guides here: https://book.cakephp.org/2.0/en/appendices.html) The reason is that a number of changes was done to help make the upgrade path a little bit easier.

Second is to upgrade to CakePHP 3 by following the guides here: https://book.cakephp.org/3.0/en/appendices/3-x-migration-guide.html

Unfortunately the 2.x to 3.x upgrade is a rather challenging one for a large application, but one that is definately rewarding. The upgrade tool does help automate a lot of the find/replace type changes, but due to the complexity of the changes (Especially with the ORM) it’s not possible to automate everything.

Once you’ve run the upgrade tool it really is a case of working through error by error until it works.

Thanks for your suggestions. Let me try it out