How do I update from 4.4.4 to 4.5.5? |
I tried following the instructions here:
https://codeigniter.com/user_guide/insta...-upgrading and added this to my root composer.json: "codeigniter4/framework": "4.5.5" (under require) but I get the error: Root package 'codeigniter4/framework' cannot require itself in its composer.json Did you accidentally name your root package after an external package? How do I upgrade correctly?
You need to start with your version and incrementally upgrade using the Change Logs.
I looked, and yes you will also need to upgrade files in the app folders also. Just do it step by step and upgrade each version. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Read and follow the instructions.
Upgrading from 4.5.4 to 4.5.5 Upgrading from 4.5.3 to 4.5.4 Upgrading from 4.5.2 to 4.5.3 Upgrading from 4.5.1 to 4.5.2 Upgrading from 4.5.0 to 4.5.1 Upgrading from 4.4.8 to 4.5.0 Upgrading from 4.4.7 to 4.4.8 Upgrading from 4.4.6 to 4.4.7 Upgrading from 4.4.5 to 4.4.6 Upgrading from 4.4.4 to 4.4.5 https://codeigniter.com/user_guide/insta...ading.html
10-10-2024, 04:39 AM
(This post was last modified: 10-10-2024, 04:50 AM by captain-sensible. Edit Reason: more more )
can you post your composer.json file please this is mine:
Code: { so you edit this line : Code: "codeigniter4/framework": "4.5.5", Code: "codeigniter4/framework": "4.4.5", then run from a cli run composer command and output from mine : Code: [andrew@darkstar CI4-CMS]$ composer upgrade
Did you ever find a solution to this issue? I'm having the exact same issue. Everything upgrades successfully to 4.5.3. But as soon as I try to upgrade to 4.5.4, its like the following doesn't belong in composer.json anymore...
Code: "require": { I have it in the "require" section. Just like https://codeigniter.com/user_guide/insta...-upgrading indicates it should be. But when I do that I get the following errors: ----------------------------------------------- $ composer update In RootPackageLoader.php line 150: Root package 'codeigniter4/framework' cannot require itself in its composer.json Did you accidentally name your root package after an external package? update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]
@opiecomp It seems your composer.json is broken.
If you show all the content of the file, someone may help you.
Hello Everyone,
I'm trying to upgrade from 4.4.4 to 4.5.5 and facing the 'Root package cannot require itself' error in composer.json. Could anyone guide me on fixing this and the correct steps for upgrading? Regards, Anup.
@nahaK post your composer file mine looks like :
Code: { last time i made the mistake of copying over the one from vendor/codeigniter4/framework it didnt go so well
My composer.json file matched what was in the framework directory and was mentioned in that update that caused me to update all, but my additions.
What I realized today, is that when I specify that I want to update to a specific "codeigniter4/framework" in the require section, that CANNOT be the "name" for the overall file. As was posed previously, it used to be "codeigniter4/appstarter". For some reason this changed with this update to now be "codeigniter4/framework"...which then led to the error seen. If you're seeing this, change the "name" at the top of the composer.json file and it will clear it up for you. This obviously wasn't tested... |
Welcome Guest, Not a member yet? Register Sign In |