Welcome Guest, Not a member yet? Register   Sign In
Update to 4.6.1
#1

I'm updating some applications and one of the files that has changed is Config/Paths.php.
Compared to the previous one, it has a different value for the $systemDirectory variable, before it was:

PHP Code:
public string $systemDirectory __DIR__ '/../../vendor/codeigniter4/framework/system'


now instead I find:

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


But this will never work, the system folder is not located there.

Am I doing something wrong?
Reply
#2

(This post was last modified: 05-07-2025, 02:27 AM by captain-sensible. Edit Reason: usual suspects )

i think i followed upgrade instruction up to the previous version 4.6.0  which is working fine

yes Config/Paths.php.  seems to have changed in 4.6.1 and trying to use it  , crashes my Ci4. I assumed unless i missed something on last upgrade that  , that is an error  of  files 4.6.1


it would work im thinking if  one didn't  use composer to install nor use to upgarde since from memory  for other installs "system" would be at  same level of app and so would work.
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#3

(This post was last modified: 05-07-2025, 02:33 AM by serialkiller.)

(05-07-2025, 02:24 AM)captain-sensible Wrote: i think i followed upgrade instruction up to the previous version 4.6.0  which is working fine

yes Config/Paths.php.  seems to have changed in 4.6.1 and trying to use it  , crashes my Ci4. I assumed unless i missed something on last upgrade that  , that is an error  of  files 4.6.1


it would work im thinking if  one didn't  use composer to install nor use to upgarde since from memory  for other installs "system" would be at  same level of app and so would work.

Yes, if you do not install with composer the system folder is there, but usually in all other updates it was in the first way, I believe and hope that it is a mistake, we await confirmation, however leaving the variable $systemDirectory as in prigine everything works, after all the comment above says: "This must contain the name of your "system" folder. Include the path if the folder is not in the same directory as this file."
Reply
#4

If you are not using composer and you are using "codeigniter4/appstarter", when updating files you should also download the appstarter zip files. From your post it seems you are downloading "codeigniter4/framework" zip files.
Reply
#5

(05-07-2025, 08:53 AM)paulbalandan Wrote: If you are not using composer and you are using "codeigniter4/appstarter", when updating files you should also download the appstarter zip files. From your post it seems you are downloading "codeigniter4/framework" zip files.

No, I'm updating from composer as always, I don't use the zip file
Reply
#6

me 2 composer ,and i started with appstarter
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#7

Hmm, where are you getting the fresh app/Config/Paths.php file? From the vendor directory?
Reply
#8

Code:
/srv/http/CI4-CMS/vendor/codeigniter4/framework/app/Config/Paths.php
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#9

(05-07-2025, 09:12 AM)paulbalandan Wrote: Hmm, where are you getting the fresh app/Config/Paths.php file? From the vendor directory?

exactly, from the seller after the update as I always do, I simply did not change the path and everything works but I do not understand why this time there is a different path
Reply
#10

"Seller" is an Alias for "vendor" i guess  

(05-07-2025, 09:42 AM)serialkiller Wrote:
(05-07-2025, 09:12 AM)paulbalandan Wrote: Hmm, where are you getting the fresh app/Config/Paths.php file? From the vendor directory?

exactly, from the seller after the update as I always do, I simply did not change the path and everything works but I do not understand why this time there is a different path
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB