Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter v4.3.8 and v4.4.0 Released!

(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.
/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...nfig-files

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

$ 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):

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

Messages In This Thread
RE: CodeIgniter v4.3.8 and v4.4.0 Released! - by Krzysiaczek - 02-28-2024, 09:07 AM

Theme © iAndrew 2016 - Forum software by © MyBB