CodeIgniter Forums
CodeIgniter v4.3.8 and v4.4.0 Released! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: News & Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=2)
+--- Thread: CodeIgniter v4.3.8 and v4.4.0 Released! (/showthread.php?tid=88338)

Pages: 1 2 3 4


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - kenjis - 09-07-2023

@chaos Try https://github.com/codeigniter4/CodeIgniter4/pull/7901


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - chaos - 09-08-2023

(09-07-2023, 02:34 PM)kenjis Wrote: @chaos Try https://github.com/codeigniter4/CodeIgniter4/pull/7901

Thank you very much. Should I patch manually the files and then upgrade when a next version is published?


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - kenjis - 09-08-2023

@chaos Yes, it is only one line change. If something wrong, please report it.


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - MrWhite - 09-11-2023

After upgrading to v4.4.0, all form submissions get timeout. I dont know how to fix this issue.
I have tried replacing system/validation/Validation.php, system/validation/ValidationInterface.php from v4.3.7 and all works fine. 
and this is the code i have tried.

my app's current ci4 version is: v4.4.1

Code:
$validation = \Config\Services::validation();
dd($validation->check('username', 'required'));
erros that im getting. below two erros got  at  two different times.
[Image: v9DGNhq.png]
[Image: 4pkMM4C.png]
And these are the generated logs.
Code:
INFO - 2023-09-11 18:25:32 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2023-09-11 18:25:43 --> CSRF token verified.
INFO - 2023-09-11 18:25:43 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2023-09-11 18:27:25 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2023-09-11 18:27:36 --> CSRF token verified.
INFO - 2023-09-11 18:27:36 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.


Please help me i dont know how to fix this issue.


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - kenjis - 09-11-2023

@MrWhite I tried the code, and got "$validation->check(...) boolean true"

You might have wrong Validation config.


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - MrWhite - 09-11-2023

(09-11-2023, 03:52 PM)kenjis Wrote: @MrWhite I tried the code, and got "$validation->check(...) boolean true"

You might have wrong Validation config.

Thank you very much Kenjis!!! mucho appreciate your huge support for the CI community and huge contribution to the framework itself.


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - Krzysiaczek - 02-28-2024

(08-26-2023, 03:58 AM)nc03061981 Wrote: I have CRITICAL

PHP Code:
CRITICAL 2023-08-26 12:35:07 --> CodeIgniter\Router\RouteCollection::__construct(): Argument #3 ($routing) must be of type Config\Routing, null given, called in /home/xvcoagjb/abc.com/vendor/codeigniter4/framework/system/Config/Services.php on line 617
in SYSTEMPATH/Router/RouteCollection.php on line 283.
 1 SYSTEMPATH
/Config/Services.php(617): CodeIgniter\Router\RouteCollection->__construct()
 
2 SYSTEMPATH/Config/BaseService.php(199): CodeIgniter\Config\Services::routes()
 
3 SYSTEMPATH/Config/Services.php(614): CodeIgniter\Config\BaseService::getSharedInstance()
 
4 SYSTEMPATH/CodeIgniter.php(783): CodeIgniter\Config\Services::routes()
 
5 SYSTEMPATH/CodeIgniter.php(442): CodeIgniter\CodeIgniter->tryToRouteIt()
 
6 SYSTEMPATH/CodeIgniter.php(353): CodeIgniter\CodeIgniter->handleRequest()
 
7 FCPATH/index.php(79): CodeIgniter\CodeIgniter->run() 

I had the exact same problem when upgrading existing project from version 4.3.5 to 4.4.6. 

I found a hint in here: https://codeigniter4.github.io/userguide/installation/upgrade_440.html#config-files

Basically copy config/Routing.php file from vendor to app/config

Code:
$ cp  vendor/codeigniter4/framework/app/Config/Routing.php app/Config

This file was not present in previous versions, like two others (found elsewhere, also throwing errors):

Code:
$ cp vendor/codeigniter4/framework/public/index.php public/index.php
$ cp vendor/codeigniter4/framework/spark spark


Not sure how many else files might be missing? It might depend on project complexity.

Wouldn't it be easier to publish necessary changes this way? - as list of files to be copied/replaced/merged?


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - kenjis - 02-28-2024

If you can use Composer, shell, and git, tatter/patches updates these files automatically.
https://github.com/tattersoftware/codeigniter4-patches


RE: CodeIgniter v4.3.8 and v4.4.0 Released! - steven01 - 11-27-2024

(08-25-2023, 05:53 AM)Frederik Wrote: I just installed 4.4 and all look good!
However hot reloading didn't work before I copied all the config files, that has been upgraded (those listed under All Changes). car parking multiplayer apk mod
Anyways, thanks for all the hard work!
Great to hear 4.4 is working well! Hot reloading often needs updated config files, especially after significant upgrades like those in 'All Changes.' Copying them was a smart move. Thanks for sharing your experience, and kudos to the team for their hard work in delivering this update!