CodeIgniter Forums
Update to 4.6.1 - 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: Update to 4.6.1 (/showthread.php?tid=92861)

Pages: 1 2


Update to 4.6.1 - serialkiller - 05-07-2025

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?


RE: Update to 4.6.1 - captain-sensible - 05-07-2025

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.


RE: Update to 4.6.1 - serialkiller - 05-07-2025

(Yesterday, 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."


RE: Update to 4.6.1 - paulbalandan - 05-07-2025

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.


RE: Update to 4.6.1 - serialkiller - 05-07-2025

(Yesterday, 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


RE: Update to 4.6.1 - captain-sensible - 05-07-2025

me 2 composer ,and i started with appstarter


RE: Update to 4.6.1 - paulbalandan - 05-07-2025

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


RE: Update to 4.6.1 - captain-sensible - 05-07-2025

Code:
/srv/http/CI4-CMS/vendor/codeigniter4/framework/app/Config/Paths.php



RE: Update to 4.6.1 - serialkiller - 05-07-2025

(Yesterday, 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


RE: Update to 4.6.1 - captain-sensible - 05-07-2025

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

(Yesterday, 09:42 AM)serialkiller Wrote:
(Yesterday, 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