CI4 upgrade from version 4.2.1 to 4.2.6 |
(09-14-2022, 12:31 AM)InsiteFX Wrote: If any changes have been made in the new version of the app folder then yes you will need to manually I looked at the change logs, but i find no mention of the system folder in the root, maybe i just don't see it
If you have the system folder in the root, it means you installed CI by manual.
https://codeigniter4.github.io/CodeIgnit...#structure
(09-14-2022, 01:41 AM)kenjis Wrote: If you have the system folder in the root, it means you installed CI by manual. No, I installed with composer, I had to copy the system folder to the root because the new version of the Paths.php file (which I replaced the old one) at line 28 reads: PHP Code: public $ systemDirectory = __DIR__. '/../../system'; In order to use the folder system in the vendor folder I have to put the old path back ... I'm confused Is it an error in the file composer updated in the vendor folder?
09-14-2022, 03:06 AM
(This post was last modified: 09-14-2022, 03:26 AM by captain-sensible. Edit Reason: added text )
I just started on a new CI4 web version 4.2.6 I used composer to install (nothing at all manual) I CAN Confirm I also have a "system" folder" at web root. Dont remember if it was there on initial install or not. Or if it appeared later due to composer install , or update?
This is what I have in vendor : Code: [andrew@darkstar:http/kursaal.org]$ tree -L 1 vendor (09-14 11:08) if you take out the system folder , it wont work. NOTE I found you get a system folder if you go to : https://packagist.org/packages/codeigniter4/framework and use the suggested text command : composer create-project codeigniter4/framework but dont if you use: composer create-project codeigniter4/appstarter project-root This looks confusing and possibly a duplication : https://packagist.org/packages/codeigniter4/appstarter https://packagist.org/packages/codeigniter4/framework Both showing 4.2.6 but seem to give different structures The text " composer require codeigniter4/framework" is mentioned at : https://codeigniter4.github.io/CodeIgnit...ng-project Code: $ composer create-project codeigniter4/appstarter ci426
(09-14-2022, 03:06 AM)captain-sensible Wrote: I just started on a new CI4 web version 4.2.6 I used composer to install (nothing at all manual) I CAN Confirm I also have a "system" folder" at web root. Dont remember if it was there on initial install or not. Or if it appeared later due to composer install , or update? I honestly don't understand, I updated with composer to the latest version of 4, there was no system folder in the root but in the Paths.php file that I copied from the vendor/codeigniter4/framework/app/Config folder there was a path that pointed to a folder system on the root that did not exist and therefore did not work, so I copied it from the vendor and obviously it worked, restoring the path of the old file that pointed to the vendor folder too, or therefore left as it is. A little while ago I tried to create a new project from scratch again with composer and now the Paths.php file has the old link again pointing to the vendor ... confused. Also, I don't understand a second thing, at this link: https://codeigniter4.github.io/CodeIgnit...e_420.html at the bottom of the page there is a list of files that have changed, including "preload.php" which should be in the root, but I don't find it in the old or the new ... I don't use any other repository other than the official one (09-14-2022, 02:23 AM)serialkiller Wrote: No, I installed with composer, I had to copy the system folder to the root because the new version of the Paths.php file (which I replaced the old one) at line 28 reads: You did it wrong. You should not change the path. If you installed via Composer, the system folder should be always vender/codeigniter4/framework/system.
(09-14-2022, 03:34 AM)kenjis Wrote:(09-14-2022, 02:23 AM)serialkiller Wrote: No, I installed with composer, I had to copy the system folder to the root because the new version of the Paths.php file (which I replaced the old one) at line 28 reads: I imagine it, but in the new Paths.php file that I copied from the folder vendor, after the update, the path was different, now as written above, the file is correct, I don't know why it wasn't before and if I didn't change this __DIR__ . '/../../system' in this __DIR__. '/../../vendor/codeigniter4/framework/system' obviously wouldn't work I also checked the two files (the old and the new Paths.php file), with VS Code comparing them (09-14-2022, 04:04 AM)captain-sensible Wrote: try the command : composer create-project codeigniter4/framework and see what you get ! Sorry, it is completely a mistake. You should not install like that. Because you cannnot update CI with `composer update`. We have only two choices if we install via Composer. composer create-project codeigniter4/appstarter project-root composer require codeigniter4/framework See https://codeigniter4.github.io/CodeIgnit...poser.html |
Welcome Guest, Not a member yet? Register Sign In |