Upgrading from 4.3.1 not upgrade version - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Upgrading from 4.3.1 not upgrade version (/showthread.php?tid=90252) |
Upgrading from 4.3.1 not upgrade version - pippuccio76 - 02-26-2024 HI , i run comand composer update , composere upgrade the dependencies but without error but if i see the version is 4.3.1 . if i try to run composer update another time : Code: Loading composer repositories with package information RE: Upgrading from 4.3.1 not upgrade version - kenjis - 02-26-2024 Check your PHP version, and the framework version in your composer.json. Code: "require": { RE: Upgrading from 4.3.1 not upgrade version - pippuccio76 - 02-26-2024 (02-26-2024, 02:04 AM)kenjis Wrote: Check your PHP version, and the framework version in your composer.json. This is my composer.json : Code: { try to add "codeigniter4/framework": "^4.0" but : Root package 'codeigniter4/framework' cannot require itself in its composer.json Did you accidentally name your root package after an external package? RE: Upgrading from 4.3.1 not upgrade version - kenjis - 02-26-2024 You did manual installation. https://codeigniter4.github.io/CodeIgniter4/installation/installing_manual.html So you cannot upgrade the framework via Composer. RE: Upgrading from 4.3.1 not upgrade version - pippuccio76 - 02-26-2024 I think not , composer update several package but note core RE: Upgrading from 4.3.1 not upgrade version - kenjis - 02-26-2024 Yes, you can update the following packages, because you have them in composer.json. But there is no "codeigniter4/framework", so the framework is never updated. "laminas/laminas-escaper": "^2.9", "psr/log": "^1.1", "phpoffice/phpspreadsheet": "^1.26" "kint-php/kint": "^5.0.1", "codeigniter/coding-standard": "^1.5", "fakerphp/faker": "^1.9", "friendsofphp/php-cs-fixer": "3.13.0", "mikey179/vfsstream": "^1.6", "nexusphp/cs-config": "^3.6", "phpunit/phpunit": "^9.1", "predis/predis": "^1.1 || ^2.0" RE: Upgrading from 4.3.1 not upgrade version - pippuccio76 - 02-26-2024 There isnt a way to update ? -Do a new installation by composer - Copy every folder in app on new installation Should be a solution? RE: Upgrading from 4.3.1 not upgrade version - kenjis - 02-26-2024 If you want to upgrade the framework via Composer, I recommend you install appstarter with Composer: https://codeigniter4.github.io/CodeIgniter4/installation/installing_composer.html#app-starter and move the current app files into it. |