Welcome Guest, Not a member yet? Register   Sign In
CI4 upgrade from version 4.2.1 to 4.2.6
#1

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?
Reply
#2

You got it!
Reply
#3

(This post was last modified: 09-14-2022, 12:28 AM by InsiteFX. Edit Reason: Spelling error, need new keyboard lol )

Also make sure you back-up first.

You will also need to replace the app folder and all root files ie; public etc.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

(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?
Reply
#5

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



I guess one way it to get 4.2.6 from

https://packagist.org/packages/codeignit...ork#v4.2.6
CMS CI4     I use Arch Linux by the way 

Reply
#6

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

The comparison direction is the opposite.

https://github.com/codeigniter4/framewor...1...v4.2.6
Reply
#7

oh thanks for the clarification
CMS CI4     I use Arch Linux by the way 

Reply
#8

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?
Reply
#9

(This post was last modified: 09-13-2022, 06:17 PM by kenjis.)

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

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB