Update to 4.6.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?
05-07-2025, 02:24 AM
(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.
(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, 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."
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.
(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
Hmm, where are you getting the fresh app/Config/Paths.php file? From the vendor directory?
(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
"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? |
Welcome Guest, Not a member yet? Register Sign In |