Going from 4.4.17 to 5.3

HI, I’m on 4.4.17, I want to get to 5.3. I understand I should go to 4.6.3 first. Can I go directly via composer from 4.4.17 to 4.6.3 or do I need to stop by 4.5 on the way, and after 4.6.3 are there any stops I should make on the way to 5.3 please?

Thanks.

you can of course just go directly to 5.3, but you will encounter “more” errors as if you go minor version by minor version.

So the recommended steps would be

4.4 => 4.5 => 4.6

on each step make sure you fix all deprecations which are reported

Then do the major version jump to 5.0 and then continue with 5.1, 5.2 and then 5.3

As said you can of course do all of these steps at once and fix all errors at once, we just don’t recommend it as it can be quite frustrating if you don’t get a working app after an upgrade depending on what parts of the framework you use.

1 Like

Thanks for that Kevin.
So from what you said I should be able to move my test system forward in stages as you suggest, fixing the errors as I go, but once I have it working at 5.3 I should be able to move the live system in one hit from 4.4 to 5.3?

i dont know your test and live system, but from a database point of view nothing changed from CakePHP 4.4 to 5.3

But usually yes, you should be able to upgrade like that

Thanks again, I’ll proceed that way, taking appropriate backups obviously.