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

(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
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.

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
Reply
#12

If you have the system folder in the root, it means you installed CI by manual.
https://codeigniter4.github.io/CodeIgnit...#structure
Reply
#13

(09-14-2022, 01:41 AM)kenjis Wrote: If you have the system folder in the root, it means you installed CI by manual.
https://codeigniter4.github.io/CodeIgnit...#structure

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

(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)
vendor
├── autoload.php
├── composer
├── kint-php
├── laminas
└── psr

4 directories, 1 file
[andrew@darkstar:http/kursaal.org]$



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
CMS CI4     I use Arch Linux by the way 

Reply
#15

Code:
$ composer create-project codeigniter4/appstarter ci426
$ ls -l ci426/
total 232
-rw-r--r--  1 kenji  staff  1159  9  5 09:16 LICENSE
-rw-r--r--  1 kenji  staff  2724  9  5 09:16 README.md
drwxr-xr-x  15 kenji  staff    480  9  5 09:16 app
-rwxr-xr-x  1 kenji  staff  3873  9  5 09:16 builds
-rw-r--r--  1 kenji  staff    956  9  5 09:16 composer.json
-rw-r--r--  1 kenji  staff  80843  9 14 19:30 composer.lock
-rw-r--r--  1 kenji  staff  4808  9  5 09:16 env
-rw-r--r--  1 kenji  staff  2415  9  5 09:16 phpunit.xml.dist
-rw-r--r--  1 kenji  staff  3107  9  5 09:16 preload.php
drwxr-xr-x  6 kenji  staff    192  9  5 09:16 public
-rwxr-xr-x  1 kenji  staff  3201  9  5 09:16 spark
drwxr-xr-x  7 kenji  staff    224  9  5 09:16 tests
drwxr-xr-x  19 kenji  staff    608  9 14 19:30 vendor
drwxr-xr-x  8 kenji  staff    256  9  5 09:16 writable
Reply
#16

(This post was last modified: 09-14-2022, 03:32 AM by serialkiller.)

(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?

This is what I have in vendor :

Code:
[andrew@darkstar:http/kursaal.org]$ tree -L 1 vendor                                                            (09-14 11:08)
vendor
├── autoload.php
├── composer
├── kint-php
├── laminas
└── psr

4 directories, 1 file
[andrew@darkstar:http/kursaal.org]$   



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

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
Reply
#17

(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:

PHP Code:
public $ systemDirectory __DIR__'/../../system'

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.
Reply
#18

with respect @Kinjis try the command : composer create-project codeigniter4/framework and see what you get !
CMS CI4     I use Arch Linux by the way 

Reply
#19

(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:

PHP Code:
public $ systemDirectory __DIR__'/../../system'

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.

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
Reply
#20

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB