CodeIgniter Forums
CI4 upgrade from version 4.2.1 to 4.2.6 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: CI4 upgrade from version 4.2.1 to 4.2.6 (/showthread.php?tid=82966)

Pages: 1 2 3


CI4 upgrade from version 4.2.1 to 4.2.6 - serialkiller - 09-06-2022

I have version 4.2.1 installed with composer, before doing damage I would like some clarification just to understand.

From what I understand if I now launch composer update, everything is updated except the files that are reported in the update section.


in total these should be all the various updates to be done manually:


- public/index.php
- spark
- app/Config/App.php
- app/Config/Constants.php
- app/Config/Logger.php
- app/Config/Paths.php
- app/Views/errors/html/error_404.php
- app/Views/welcome_message.php
- app/Config/ContentSecurityPolicy.php
- app/Config/Routes.php
- app/Config/Validation.php


So, if I update I would end up with version 4.2.6 and would I have to manually copy the files from the folder: vendor/codeigniter4/framework and replace them with the existing ones, paying attention to any changes I made and bring them back into the new files?

It's correct?


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - MGatner - 09-06-2022

You got it!


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - InsiteFX - 09-07-2022

Also make sure you back-up first.

You will also need to replace the app folder and all root files ie; public etc.


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - serialkiller - 09-07-2022

(09-07-2022, 12:31 AM)InsiteFX Wrote: Also make sure you back-up first.

You wilol also need to replace the app folder and all root files ie; public etc.

I don't understand what you mean by replacing the app folder, the files I have listed should be all those involved in the changes and therefore must be replaced, the others should remain unchanged or am I wrong?


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - captain-sensible - 09-07-2022

you have confused me now ; i used compare facility at url https://github.com/codeigniter4/CodeIgniter4/compare/release-4.2.6...release-4.2.1 and it shows zero changes .



I guess one way it to get 4.2.6 from

https://packagist.org/packages/codeigniter4/framework#v4.2.6


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - kenjis - 09-07-2022

(09-07-2022, 10:38 AM)captain-sensible Wrote: you have confused me now ; i used compare facility at url https://github.com/codeigniter4/CodeIgniter4/compare/release-4.2.6...release-4.2.1  and it shows  zero changes  .

The comparison direction is the opposite.

https://github.com/codeigniter4/framework/compare/v4.2.1...v4.2.6


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - captain-sensible - 09-08-2022

oh thanks for the clarification


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - serialkiller - 09-13-2022

I updated and I noticed that in version 4.2.1 the system folder on the root did not exist but it pointed to the one contained in vendor/framework I had to copy it otherwise, even if the old path was valid nothing worked anymore, it's normal, I did correctly?


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - kenjis - 09-13-2022

If you installed via Composer, there is no system folder on the root from the beginning.


RE: CI4 upgrade from version 4.2.1 to 4.2.6 - InsiteFX - 09-14-2022

If any changes have been made in the new version of the app folder then yes you will need to manually
edit and move your code into the new files in the app folders,.

Please read the change logs they will state what files in the app folder have changed.